From 6512d095b3463c938385cfdf94cd2b0ecc9f6cf9 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sat, 24 May 2025 03:00:12 +0200 Subject: [PATCH] add convert --- functions/convert.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 functions/convert.fish diff --git a/functions/convert.fish b/functions/convert.fish new file mode 100644 index 0000000..b0bbd52 --- /dev/null +++ b/functions/convert.fish @@ -0,0 +1,7 @@ +# convert +# convert all files with old_ext to new_ext using ffmpeg +function convert + for i in *.$argv[1] + ffmpeg -i "$i" (string replace -r '\.[^.]*$' ".$argv[2]" -- $i) + end +end