I read somewhere that:
sed -n -e '/foo/d' myinputfile.txt
would remove all occurences of 'foo' from myinputfile.txt.
However this does not seem to work for me. I am a sed noob and cannot seem to work this out. I am basically trying to run a bash script that calls sed on each line to remove a word from the input file and nothing happens when I run it.
Thanks :)