Posted By

Figjam on 08/04/09


Tagged


Versions (?)

Sendmail: Sort the contents of /var/spool/mqueue by subject.


 / Published in: Bash
 

Sort the contents of /var/spool/mqueue by subject and the number of times it shows.

  1. find /var/spool/mqueue -type f -name 'qf*' -exec sh -c 'grep -s "Subject: " "$@" | sort -k2 | uniq -f 2 -c | sort -k1n' sh {} +

Report this snippet  

You need to login to post a comment.