I know how to replace a character in a file (using grep for example).
What I need to do is to replace a character in a variable :
MyVar="abcd/ter/123"
and I need to replace "/" with "_"
(in the end I want MyVar="abcd_ter_123"
It's probably soooooo easy ... but I'm stuck ...
Thank you !!!
What I need to do is to replace a character in a variable :
MyVar="abcd/ter/123"
and I need to replace "/" with "_"
(in the end I want MyVar="abcd_ter_123"
It's probably soooooo easy ... but I'm stuck ...
Thank you !!!