in reply to Re: Printing a line only if first line of file
in thread Printing a line only if first line of file

perl -ne 'print && close ARGV' filename.txt