summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2024-04-01 04:43:34 -0700
committerXiao Pan <gky44px1999@gmail.com>2024-04-01 04:43:34 -0700
commitb2655c3312e9229fcf9935f91d1a345e708888cf (patch)
tree5088f481f0097956c02acc5b95501cc4d1670f95 /sh
parentabe0f2a59a4dfb64003d759d406ee5a21cf142bd (diff)
more comment
Diffstat (limited to 'sh')
-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"