diff options
Diffstat (limited to 'sh/ggm')
-rwxr-xr-x | sh/ggm | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#!/bin/sh +# Grep Gnu Mailman Mailing list archive +# use with cgm + +# testing mailing list archives: +# https://lists.zx2c4.com/pipermail/cgit/ +# https://mailman.nginx.org/pipermail/nginx/ +# only year: +# https://dianne.skoll.ca/pipermail/remind-fans/ + +ls --zero | sort -zt- -k1,1n -k2,2.3M | xargs -0 grep -i --color=always "$@" +# if want reverse sort, put r right after -k1,1n, more see `man sort`, e.g.: +#ls --zero | sort -zt- -k1,1nr -k2,2.3Mr | xargs -0 grep -i --color=always "$@" | "$PAGER" |