From 755bb6cf7f8c69898c0fb55086c0b86510a03431 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 6 Jun 2025 17:29:27 +0200 Subject: checkpoint --- bin/extra/last_replay | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bin/extra/last_replay (limited to 'bin/extra/last_replay') 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" -- cgit v1.2.3-70-g09d2