going into a completely different direction, a one-liner doing the job:
$ echo 'heaven > heavenly > heavenns > abc > heavenns > heavennly' | perl -nE 'BEGIN {$nr = shift;} chomp; say length $_ i +f $. == $nr;' 4 3
In reply to Re: how to find the length of any line of file
by Laurent_R
in thread how to find the length of any line of file
by lakshmikant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |