in reply to Merging multiple files

bluray:

Perhaps something like:

perl -pe 'next if $.>1 and /^SP   GC DC  ID  Descr   GI Locus LF/' file1.csv file2.csv file3.csv file4.csv

Or perhaps not...

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: Merging multiple files
by Eliya (Vicar) on Jan 13, 2012 at 00:29 UTC
    perl -pe 'next if ...

    The print done by the -p option cannot actually be skipped with next, as it's in a continue block, and therefore executes anyway.

    But you could of course use -n instead and say 'print unless $.>1 and ...'