Skip to content

Instantly share code, notes, and snippets.

@rileyjshaw
Created July 27, 2022 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rileyjshaw/e4f4cd246544c3724f4f2d78a8a5e2de to your computer and use it in GitHub Desktop.
Save rileyjshaw/e4f4cd246544c3724f4f2d78a8a5e2de to your computer and use it in GitHub Desktop.
MacOS: Enter all subdirectories of the current folder and add "00. Title.mp3", which reads the folder name.
#!/bin/bash
for d in */; do
cd "$d"
say "$d" -o "00. Title.aiff"
lame -m m "00. Title.aiff" "00. Title.mp3"
rm "00. Title.aiff"
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment