Quantcast
Channel: grep out unique senders from a huge list of emails - Server Fault
Browsing latest articles
Browse All 4 View Live

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

Try this: awk '/^From: / { print $2 }' /home/user/mail/new | sort | uniq -c | sort -rn It's not one file, each email is about 20K, and the total emails amount to 30G. awk '/^From: / { print $2 }'...

View Article


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

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...

View Article


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

$ grep -E '^From:' /some/file | uniq

View Article

grep out unique senders from a huge list of emails

I just found a huge list of emails under my user account in Centos /home/user/mail/new I opened some of them and noticed they were sent from a particular cron job. From address is root@hostname.com. I...

View Article
Browsing latest articles
Browse All 4 View Live


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