bash - how to keep echo from replacing backslashes stuff?
Hi!
I'm reading a SQL input with readme in order to do some processing with the lines and then I use echo to write them into STDOUT. Something like this: Code:
IFS='' Thanks in advance |
You can always use cat...
Code:
inputfile="$(cat < testfile)" Code:
testfile: Code:
output: |
It's not echo that is removing the slashes, but rather read. A solution is to use read -r:
Quote:
Quote:
|
read -r did the trick. Thank you very much.
|
All times are GMT -5. The time now is 04:46 AM. |