I need to run a sed command like this as part of a shell script
sed 's/brad/pitt/g'
I am supposed to provide brad as a command line argument and run a command like this
sed s/$1/pitt/g
While this command is working, what I would like to know is how can I do this command without removing the quotes, since I might have some content in the replacement string which needs the quotes.
I am not so confident with the quotes and that is why I want to see how things will work with a little tweaking?