Last active
October 28, 2022 17:49
-
-
Save Pavel-Durov/4d32b0859f4f2c02b81c3c3aa4932140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
OUT="./mp3" | |
mkdir ${OUT} | |
for f in ls ./*.flac; do | |
echo "processing '${f}'" | |
if [ -f "${f}" ]; then | |
CMD='ffmpeg -i "'""${f}""'" ${OUT}/"'""$(echo ${f} | sed s/.flac/.mp3/)""'"' | |
eval "${CMD}" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment