I have to replace special characters using shell, so i use sed but i have some mistakes that i don't understand.
<%_ by [@, ("_" = dash)
_%> by ]
for the first 2 characters my synthax is : sed -i y/\<%\/\]\/ test.htm
it works, but here how can i add the dash character ?
The second should be this way sed -i y/\%>\/\]\/
but i have this mistake bash: /]/: is a folder
can you help me please
_
is underscore,-
is dash. Which of these do you want to replace? – Barmar Apr 17 '15 at 21:22sed
argument that contains the subsitution, because it includes special shell characters. – Barmar Apr 17 '15 at 21:23s/from/to/
.y
is for doing character-by-character translation. – Barmar Apr 17 '15 at 21:24