title: using sed to find text and delete line using bash on mac os x
body: <p>I am finding that when I run this bash script to delete two lines that match the pattern, I get  -sed: 1: "/etc/nsmb.conf": extra characters at the end of n command- error when run
  Here is the code problem lines:</p>
  
  <pre><code>sed -i s/[default]/d /etc/nsmb.conf
  sed -i s/signing_required=no/d /etc/nsmb.conf
  </code></pre>
  
  <p>pretty basic, but not sure of syntax.  looking up answers it seems Mac OS X may need extra chars but do not know what they may be.  Just trying to remove these two lines in a file:</p>
  
  <pre><code>[default]
  signing_required=no
  </code></pre>
  
  <p>any help is appreciated</p>