Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- find mail size
- cat /var/log/maillog | grep -oP '(?<=\[).*?(?=\])' | grep Size | grep -v '"SizeinKB"="0"' | uniq -c
- multiply the columns:
- 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