Hello,
I having a problem reading a file in a while loop.
My file (called "testfile.txt") contains these lines:
\"test\"
\"hello\"
(including both \ and ")
This is the loop I have written:
=======================
while read line
do
echo $line
done < testfile.txt
=======================
the output is:
"test"
"hello"
it removes the slashes (which I need).
I also tried with:
echo ${line}
echo "$line"
echo "${line}"
without success.
It looks like I can't figure out the solution
... maybe I am too tired
Can anyone help me please?
Thank you!