summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2021-09-27 10:54:04 -0400
committerAndrew Cady <d@jerkface.net>2021-09-27 10:54:04 -0400
commit33ffea83c191e2ecdfbc79b88806bc151483ebed (patch)
tree1f48094252247fa87731b4b41ff656e9a057a936
parent623d62af7ee3130795c871db9079d124e6f16868 (diff)
fixup! new command: latest
-rwxr-xr-xdot/local/bin/latest2
1 files changed, 1 insertions, 1 deletions
diff --git a/dot/local/bin/latest b/dot/local/bin/latest
index e475c1b..ef95cfe 100755
--- a/dot/local/bin/latest
+++ b/dot/local/bin/latest
@@ -18,7 +18,7 @@ esac
18 18
19extract() 19extract()
20{ 20{
21 sort -z -n -k1,1 -r | head -z -n 1 | xargs -0 printf '%s\n' | cut -d' ' -f2 21 sort -z -n -k1,1 -r | head -z -n 1 | xargs -0 printf '%s\n' | perl -pe 's/.*? //'
22} 22}
23 23
24find "$@" -maxdepth 1 -name '.*' -o \( -type f -printf "%C@ %h/%f\0" \) | extract 24find "$@" -maxdepth 1 -name '.*' -o \( -type f -printf "%C@ %h/%f\0" \) | extract