Advertisement
Guest User

komal chautala

a guest
Sep 19th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. find mail size
  2.  
  3. cat /var/log/maillog | grep -oP '(?<=\[).*?(?=\])' | grep Size | grep -v '"SizeinKB"="0"' | uniq -c
  4.  
  5. multiply the columns:
  6.  
  7. cat /var/log/maillog | grep -oP '(?<=\[).*?(?=\])' | grep Size | grep -v '"SizeinKB"="0"' | uniq -c | awk -F'"' '{print $1*$4}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement