Could someone point me in the right direction here? I do not know
much, but I want to learn how to create a new command. I have a
unix directory with several files, and would like to create a
command which would work like this:
Read all the lines in the specified file (or all files) and if the
string is found, then delete the whole line. Keep doing this until
all such lines in the specified files are deleted.
The command would look like this:
newcommand <string> <filename or wildcard>
I don't know if this is a simple few lines of code or not, so I hope
this isn't too much to ask.