perl -lne "print length and exit if $. == 4"
the above will work with data passed via pipe and also with a filename passed as argument.
L*
In reply to Re^2: how to find the length of any line of file -- oneliner
by Discipulus
in thread how to find the length of any line of file
by lakshmikant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |