I am trying to filter web server log files using grep. I need to print all lines containing 65.55. but exclude matching lines containing msnbot .
My starting point is this, but it does not work:
grep "^.*65\.55\..*(!msnbot).*$" ex100101.log > results.txt
I use grep for Windows (hence double quotes), but I doubt it matters.
Nickg source
share