Hi,
Say I have a string in my shell script and I want to do a find and replace on it what I am supposed to use and how? I have tried using sed (but then realised this was just for files?) and am now a bit stumped.
All I want to do is to find all instances of "^m" within a string and replace them with " ".
How do you do you this?
Cheers
Rob
Say I have a string in my shell script and I want to do a find and replace on it what I am supposed to use and how? I have tried using sed (but then realised this was just for files?) and am now a bit stumped.
All I want to do is to find all instances of "^m" within a string and replace them with " ".
How do you do you this?
Cheers
Rob