Changeset 2411 for trunk/server/fedora/config/etc/scripts/prune-mailq
- Timestamp:
- May 20, 2013, 2:15:39 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/fedora/config/etc/scripts/prune-mailq
r2410 r2411 12 12 clean_locker() { 13 13 echo "${1%%@scripts.mit.edu}" 14 } 15 16 list() { 17 echo "Top twenty users by number of queued messages:" 18 mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { print $8 }' | sort | uniq -c | sort -n | tail -n 20 14 19 } 15 20 … … 80 85 shift 81 86 case $op in 82 list) 83 mailq | tail -n +2 | grep -v '^ *(' | awk 'BEGIN { RS = "" } { print $8 }' | sort | uniq -c | sort -n 84 ;; 87 list) list;; 85 88 show-rand) show_rand;; 86 89 email) tmpl_email "$@";;
Note: See TracChangeset
for help on using the changeset viewer.