while (<>) { if (/^(>[^|]*)/) { print "$1\n"; } else { print; } } [download]
In reply to Re: trim header lines in files by choroba in thread trim header lines in files by utpalmtbi