View Single Post
Old 09-11-2017, 12:53 PM  
wocnom
Confirmed User
 
wocnom's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 132

Quote:
Originally Posted by Barry-xlovecam View Post
I'll do it my way TY

Code:
zgrep -e '='  -ve 'l=|"-"' -e 'google' -c access.log.gz
2596428 <<<WTF
wc -l access.log.gz 
214812 access.log.gz

zgrep -e '='  -ve 'l=|"-"' -e 'google'  access.log.gz| wc -l 
2596428

zcat access.log.gz|egrep '='| egrep -v 'l=|"-"'| grep 'google' |wc -l
2450
My bad. It seems that using -v negates all -e patterns and it doesn't matter about position.
wocnom is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote