sushi/functions/convert.fish
2025-05-24 03:00:12 +02:00

7 lines
212 B
Fish

# convert <OLD_EXT> <NEW_EXT>
# 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