Last active
May 4, 2018 10:21
-
-
Save deeuu/e4e55f4087ace8ea9e0c1c157ef8f21c to your computer and use it in GitHub Desktop.
Traverse a directory tree, converting all wav files (which will be deleted) to flac
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
find $1 -name "*.wav" -exec sh -c 'sox "$1" --bits 16 "${1%.*}.flac"; rm "$1"' _ {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment