in reply to Re: how to find the length of any line of file
in thread how to find the length of any line of file
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*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: how to find the length of any line of file -- oneliner
by Laurent_R (Canon) on Nov 23, 2017 at 10:51 UTC | |
by Discipulus (Canon) on Nov 23, 2017 at 11:12 UTC |