I have a script that sequentially read thru a file in a while do loop. However leading spaces from the records are removed by the read, is there anyway to keep these spaces.
example
while read -r line
do
PROCESS goes here
done < $PrintFile
If my line is " Here is some text", $line only shows "Here is some text".
Thanks
Paul
example
while read -r line
do
PROCESS goes here
done < $PrintFile
If my line is " Here is some text", $line only shows "Here is some text".
Thanks
Paul