i have a file which contains multiple lines. each line size may come around 64MB. and i want to read line by line and nee to find the length of each line,
at present am doing it in the following way,
while read LINE
do
len=`expr length "$LINE"`
# and using the variable len for some purpose
done < file
the problem is, when the line size is big, i am getting error like parameter is too long.
is there any other way to find the length?