Hi,
I simply want to read each line in a file, and then spit it out faithfully to STDOUT. The problem is when I use 'print' or 'echo' to spit out the line, the leading blanks are stripped, i.e. original " hahaha", after 'print' or 'echo', it becomes "hahaha". I need the lines to be intact. How do I do it??!!
Here is the snip of my script:
cat $filename | while read line ;do
print "$line"
done
Any clue is greatly appreciated.
Shalese
I simply want to read each line in a file, and then spit it out faithfully to STDOUT. The problem is when I use 'print' or 'echo' to spit out the line, the leading blanks are stripped, i.e. original " hahaha", after 'print' or 'echo', it becomes "hahaha". I need the lines to be intact. How do I do it??!!
Here is the snip of my script:
cat $filename | while read line ;do
print "$line"
done
Any clue is greatly appreciated.
Shalese