shell-scripts/convert-to-flac
2024-03-03 16:32:28 -06:00

7 lines
157 B
Bash
Executable file

#!/bin/sh
for file in *.mp3; do
newfile="$(echo "$file" | sed '$ s/.mp3//')"
echo $newfile
ffmpeg -i "$file" -c:a flac "${newfile}.flac"
rm "$file"
done