I'm parsing a file with multiple Fortran-like blocks that look like:
START_KEYWORD
line 1
line 2
END_KEYWORD
I want only the contents of each block, not the keywords.
grep { /START_KEYWORD/.../END_KEYWORD/ }
returns the entire block - including the start and end keywords.
Is there a slick way to only return the contents of the block (line 1 and
line 2)?
-Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
