even more confused now.
In the same file I need to add \\ at the end of each line to use it in latex, in this case I must put the sed command in single quotes, otherwise the same command would give only one back slash:
sed 's/$/\\\\/g' file > newfile (gives expected output)
sed s/$/\\\\/g file > newfile (only adds one backslash)
why?
|