[...]
I'm using read and for some reason, it is stripping the leading spaces off of each line.
[...]
Consider this:
$ cat infile
a
a
a
$ while read;do
while> echo "$REPLY"
while> done<infile
a
a
a
$ while IFS= read;do
echo "$REPLY"
done<infile
a
a
a
$
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
Offline 54 posts
since Feb 2007