You could also test $., like so: last if $. > 3;
In reply to Re^2: Keep only X number of entries of a file using a delimeter
by SimonPratt
in thread Keep only X number of entries of a file using a delimeter
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |