How to remove lines from a file
I am trying to go through an apache log file that is fairly large. A lot of the entries in here are from Microsoft worms making the rounds. What is a quick way for me to remove those entries from the logs once they are already there? I've been using something like:
cat logfile | grep -v "worm_string" > cleanlogfile
There must be a faster way to do this. Maybe with sed and awk? Unfortunately I am not too proficient with those yet.
Any help is greatly appreciated.