Hi, I need to parse a file that has line like
/* blah blah blah */When I use
while read LINE
do
echo $LINE
done < filenameMy script would return
/* blah blah blah /log /dir....Why is that? How do I get back /* blah blah blah*/?
With a variable containing white space, you have to surround that variable - $LINE in this case - with double quotes: while read LINE do echo "$LINE" done < filename
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |