I want to add this character at the end of each line in a file:
sed -e 's/$/\/$/g' myfile.txt > myfile_new.txt
The result add $/
with explicit $ in each line. but I do not want to add $.
For example, this is a line in the original file:
https://myline
I executed the command, the result become:
https://myline/$
But I want:
https://myline/
What is wrong? Plz note that the file was originally dos
type, I convert it to unix
using:
dos2unix myfile.txt