in reply to Re^2: Coping a part of text file
in thread Coping a part of text file

perl -pe '/========= List =========/ and exit;' infile > outfile

... or is the requirement more complex than specified?

Replies are listed 'Best First'.
Re^4: Coping a part of text file
by Anonymous Monk on Jul 04, 2013 at 08:46 UTC
    Hey just one more help required , if I have an array and I need to find a specific word in it like DATA LIST , by avoiding any space that may be present before DATA or after LIST , how can I do it

      With grep, I imagine.

      Hey just one more help required

      You are Columbo, AICMFP.