summaryrefslogtreecommitdiff
path: root/bin/extra/last_replay
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-06-06 17:29:27 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-06-06 17:29:27 +0200
commit755bb6cf7f8c69898c0fb55086c0b86510a03431 (patch)
treeddcdca2ef03466d82b138189bdf477654d646936 /bin/extra/last_replay
parentc3c2050d2a6dda58f2ecaaa95da5855e7ca4a264 (diff)
checkpoint
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"