how to use sed to delete mutiple string patterns from apache access log
hi all,
Happy New Year !
I have been asked to remove additional lines from the Apache internet logfiles in an attempt to reduce the amount of non-human traffic (web bots / spiders) that's being analyzed in WebTrends. So, I am trying to write a script to filter out the following string patterns in the
access.log and generate a new output file:
Yahoo! Slurp
help.yahoo.com/help/us/ysearch/slurp
msnbot-media
MSRBOT
Googlebot
My question is how to use Multiple commands in sed to delete the above string patterns from the access.log and pipe it to a new file ?
I am able to delete a specified string pattern, but don't how to delete mutiple .
cat access.log |sed '/Googlebot/d' > newfile
Thanks .
|