Search Results

Search: Posts Made By: MastaG
15,568
Posted By MastaG
Thanks a million! Well since many service names...
Thanks a million!
Well since many service names contain a ! % or @ the best delimiter would be =.
sed -n -e "\=^Veronica/Disney XD$={x;p;q;};h" services
00a6:ffff0000:0019:01f4:25:203
15,568
Posted By MastaG
Well I tried to use another delimiter but it...
Well I tried to use another delimiter but it seems to be unsupported.
The / works:
sed -n -e "/^Nederland 1$/{x;p;q;};h" services
1f44:ffff0000:0008:01f4:1:331

However using ! will not:
sed...
15,568
Posted By MastaG
using a another delimiter with sed?
Hi there,

After lots of reading I figured out how to use sed to parse my file.
This file is called services.txt:

00a1:ffff0000:0018:01f4:1:477
BravaNL ...
4,512
Posted By MastaG
Thanks allot folks! You really helped me...
Thanks allot folks!

You really helped me out, especially the example without using sed!
Thanks a million!
4,512
Posted By MastaG
I'm afraid the environment doesn't ship with...
I'm afraid the environment doesn't ship with "awk".
So there is no way to do the same thing with only sed?
If not then I'll have to ask the software-maintainer to recompile a new build for our...
4,512
Posted By MastaG
The script is going to run on a...
The script is going to run on a busybox-enviroment.
The awk application is not available, only sed and grep.
4,512
Posted By MastaG
Matching a pattern between two characters (sed)
Hi there,

I have a file with lines like these:
0105:ffff0000:001b:01f4:25:434
0299:ffff0000:0009:01f4:2:319
02d2:ffff0000:000e:01f4:2:507

The above values are split up using ":" characters....
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 06:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy