var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Problems with read command
I have a file with the following lines
All the X here are actually spaces in the actual file.
To read this file line by line , I used the following code.
cat $file | while read line
In the output, I get something like this
123456789X123456789. All but 1 space have disappeared. Actually I need the spaces in tact. Please let me know where I went wrong.
Thanks in advance.
while read line
echo "$line" # the quotes will prevent echo removing the extra spaces
done < test.dat