in reply to Re: Printing a line only if first line of filein thread Printing a line only if first line of file
perl -ne 'print && close ARGV' filename.txt [download]