summaryrefslogtreecommitdiff
path: root/bin/extra/last_replay
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra/last_replay')
-rwxr-xr-xbin/extra/last_replay9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/extra/last_replay b/bin/extra/last_replay
new file mode 100755
index 0000000..5cc0dba
--- /dev/null
+++ b/bin/extra/last_replay
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+File="$(find ~/vids/replays -type f -printf '%Ts %p\n' |
+ grep -E '\.(mp4|mkv|webm)' |
+ sort -n -r |
+ head -n 1 |
+ cut -f 2- -d' ' | tr -d '\n')"
+
+printf '%s' "$File"