Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ ! -d "FLAC" ]; then
- mkdir "FLAC"
- fi
- find . -maxdepth 1 -type f -iname "*.flac" | while read file
- do
- echo "Encoding $file to MP3."
- flac -cd "$file" | lame -b 320 -q 0 --resample 44.1 - "${file%.flac}.mp3"
- mv "$file" "FLAC/"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement