Search Results

Search: Posts Made By: laser
3,427
Posted By laser
Thank you very much guys and to everyone who...
Thank you very much guys and to everyone who helped me.

Kind of weird about the whole awk vs. nawk in Solaris
I've got scripts that use awk (on Solaris) yet for the following I must use nawk...
3,427
Posted By laser
Wow I wonder what is up, still same errors, I'm...
Wow I wonder what is up, still same errors, I'm using Solaris
Thx Franklin


Hulk-BASH$ awk '/^START_LABEL/{p=1;next}/^END_LABEL/{exit}p' somefile.txt
awk: syntax error near line 1
awk: bailing...
3,427
Posted By laser
Thank you Ikon, but I received this: ...
Thank you Ikon, but I received this:


Hulk-BASH$ cat somefile.txt | awk -F 'START_LABEL' 'BEGIN{RS="END_LABEL"; OFS="\n"; ORS=""} {print $2}'
awk: syntax error near line 1
awk: bailing out near...
3,427
Posted By laser
different take on common ?: search for two strings and remove lines between them and
Thank you for assisting,

I've got a partial solution just needs a tweak.


Hulk-BASH$ cat somefile.txt
oh there is some stuff here
some more stuff here
START_LABEL
stuff I want
more stuff...
7,443
Posted By laser
Thank you very much for the help and even the...
Thank you very much for the help and even the Perl solution.

I hope this information helps others too.

Thanks

L.
7,443
Posted By laser
Thanks for your help. No -i option, looks like...
Thanks for your help. No -i option, looks like I'm stuck renameing the file.

OPTIONS
The following options are supported:

-e script script is an edit command for sed. See...
7,443
Posted By laser
sed over writes my original file (using sed to remove leading spaces)
Hello and thx for reading this

I'm using sed to remove only the leading spaces in a file

bash-280R# cat foofile
some text
some text
some text
some text
some text
bash-280R#
...
Showing results 1 to 7 of 7

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