I wonder if anyone can help me and at the same time teach me ... how to remove lines containing selected text from a text file using bash scripting. For example, if a text file contains the following lines, at random locations within the file and not necessarily one following the other:
PHP Code:
glenn the_linuxfan
mike the_linuxfan
john the_linuxfan
How the h-e double hockey sticks is this accomplished? I've examined sed and awk, loops, arrays, etc. but I just-can't-get-it-right !!!!
Your kind suggestions will be immensely appreciated.