summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/ggm1
1 files changed, 1 insertions, 0 deletions
diff --git a/sh/ggm b/sh/ggm
index 7bb66a4..b432142 100755
--- a/sh/ggm
+++ b/sh/ggm
@@ -8,6 +8,7 @@
# only year:
# https://dianne.skoll.ca/pipermail/remind-fans/
+# `man sort` `info sort`
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"