Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
This will work as long as the brace that closes the env block is the last one. To wit:
is not going to work. Now, it's possible that his input might look as simple as your example...but then he (hopefully) would have figured out a solution for that case already; something brain-dead like cat input | awk '{if (first == 1) {print l; l = $0;} else {first=1} }' for instance. A poster above said it already -- if it nests, don't use regexes. Even if you do get it to work, you'll wish you hadn't. ---"I hate it when I think myself into a corner." Matt Mitchell In reply to Re: Re: Parsing... possible w/o too much stress ?
by antifun
|
|