diff options
author | Andrew Cady <d@jerkface.net> | 2021-09-27 10:54:04 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2021-09-27 10:54:04 -0400 |
commit | 33ffea83c191e2ecdfbc79b88806bc151483ebed (patch) | |
tree | 1f48094252247fa87731b4b41ff656e9a057a936 | |
parent | 623d62af7ee3130795c871db9079d124e6f16868 (diff) |
fixup! new command: latest
-rwxr-xr-x | dot/local/bin/latest | 2 |
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 | ||
19 | extract() | 19 | extract() |
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 | ||
24 | find "$@" -maxdepth 1 -name '.*' -o \( -type f -printf "%C@ %h/%f\0" \) | extract | 24 | find "$@" -maxdepth 1 -name '.*' -o \( -type f -printf "%C@ %h/%f\0" \) | extract |