BranoI hate VogonsPremium,MVMReviews:
|reply to Uraki |
Re: grep (awk, sed) help
Ok guys, thank you for all 3 examples.
The awk posted by Black Box
and the sed posted by Uraki
are doing what I need.
your is not producing desired output (or I'm doing something wrong).
In any case, mission accomplished, thank you all for help.
Did you try invoke sed as I mentioned in my last post? "sed -n -f the-script-file input-file-1 input-file-2 ... etc"
|reply to Brano |
For the sake of completeness, I'll mention that the whole script can be put in a file (let's say
) that if made executable can be executed directly. I takes the same parameters as
, so if invoked
it will filter the
file and put the filtered output on the standard output. Pipe or redirect as you wish ;).--
Keep It Safe, Stupid!
Yes, I CanChat. Can You?
Funny you mention that Black Box
as offline, I mentioned the same Brano
Incidentally, the issue why my sed script wasn't working was resolved. The Regular Expression Brano
used didn't cover the input file.
openSUSE 12.2/KDE 4.x
ISP: TekSavvy Bonded DSL; backhauled via a 6KM wireless link
Assorted goodies: »pablo.blog.blueoakdb.com