Created
July 26, 2021 07:16
-
-
Save mcichecki/3e2bcaab408d3403e39533aa6fa84cba to your computer and use it in GitHub Desktop.
Shell script which converts all files in the folder to the caf format
This file contains hidden or 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/bash | |
mkdir -p caf | |
for file in $1*; do | |
file_basename=$(basename -- "$file") | |
filename="${file_basename%.*}" | |
echo converting $filename | |
afconvert -f caff -d LEI16@44100 -c 1 $file caf/$filename.caf | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment