7 lines
157 B
Bash
Executable file
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
|