random scripts I use
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
324 B

#!/usr/bin/env fish
function flac2mp3 -d 'Converts FLAC files to MP3'
for f in ./*.flac
if not ffmpeg -i "$f" -q:a 0 -vn (basename "$f" ".flac")".mp3"
echo "failed to process $f, exiting"
exit 1
echo "$f success"
read -P "success. delete files? [yn] " yn
test $yn = y
and rm ./*.flac
## EOF