Quantcast
Channel: grep out unique senders from a huge list of emails - Server Fault
Viewing all articles
Browse latest Browse all 4

Answer by Farhan for grep out unique senders from a huge list of emails

$
0
0

To get total number of emails, run:

grep From: /home/user/mail/new | wc -l

to get the count of emails from root, run this

grep ^From /home/user/mail/new | grep root\@hostname.com | wc -l

now (Total emails) - (emails from root) = actual number of emails from total emails.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>