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