/ Published in: Bash

Sort the contents of /var/spool/mqueue by subject and the number of times it shows.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
find /var/spool/mqueue -type f -name 'qf*' -exec sh -c 'grep -s "Subject: " "$@" | sort -k2 | uniq -f 2 -c | sort -k1n' sh {} +
Comments
