Re: matching pattern over multiple lines
- From: sandeepsinghal@xxxxxxxxx
- Date: 28 Feb 2006 01:09:12 -0800
Ed Morton wrote:
sandeepsinghal@xxxxxxxxx wrote:
Sashi wrote:
[Untested]
awk '/Select/,/;/' your_input_file
Watch out for case-sensitivity. Select is different from select.
HTH,
Sashi
doesn't work ... can you please elaborate on the above ... it gives a
parse error in its current form and since I did not understand it, I
could not really tweak it.
You're probably using old, broken awk. Use any of:
gawk (GNU awk)
nawk (New awk)
/usr/xgp4/bin/awk (on Solaris)
mawk
tawk
Regards,
Ed.
Yes, I was using a broken awk. It works fine now. Thanks Sashi, Ed
.
- References:
- matching pattern over multiple lines
- From: sandeepsinghal
- Re: matching pattern over multiple lines
- From: sandeepsinghal
- Re: matching pattern over multiple lines
- From: Sashi
- Re: matching pattern over multiple lines
- From: sandeepsinghal
- Re: matching pattern over multiple lines
- From: Ed Morton
- matching pattern over multiple lines
- Prev by Date: Re: Prompt for execution of commands
- Next by Date: grep OR
- Previous by thread: Re: matching pattern over multiple lines
- Next by thread: Possible to use multiple characters as a delimiter?
- Index(es):
Relevant Pages
|
|