7 lines
212 B
Fish
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
|