in reply to skipping lines when parsing a file

Range Operators might help.

Replies are listed 'Best First'.
Re^2: skipping lines when parsing a file
by lomSpace (Scribe) on Aug 20, 2009 at 17:17 UTC
    Hi toolic!
    This is a dynamic situation, so range operators won't do.
    I want to remove the text starting at "COMMENT" and
    just before the line that starts with FEATURES.
    Then print from "FEATURES" until the end of the line.
    LomSpace
      Perhaps I do not understand your requirements. It would help if you were to also post your desired output. Here is an example using range operators:

      This is the output: