title: Using sed with command line argument?
body: <p>I need to run a sed command like this as part of a shell script </p>
  
  <pre><code>sed 's/brad/pitt/g'
  </code></pre>
  
  <p>I am supposed to provide brad as a command line argument and run a command like this</p>
  
  <pre><code>sed s/$1/pitt/g
  </code></pre>
  
  <p>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.</p>
  
  <p>I am not so confident with the quotes and that is why I want to see how things will work with a little tweaking?</p>