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:
sed -i s/[default]/d /etc/nsmb.conf
sed -i s/signing_required=no/d /etc/nsmb.conf
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:
[default]
signing_required=no
any help is appreciated