perl -e 'my $c = <> for 1..2; print "One line\n" if $. == 1;' file.txt
In reply to Re: How to check if a file has more than one line?
by Laurent_R
in thread How to check if a file has more than one line?
by bobo33+
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |