Skip to content

Instantly share code, notes, and snippets.

@kika
Created August 14, 2015 03:46
Show Gist options
  • Save kika/e7d927ad8780fc485e2d to your computer and use it in GitHub Desktop.
Save kika/e7d927ad8780fc485e2d to your computer and use it in GitHub Desktop.
OS/X: Get the durations of the list of audio files and output CSV
mdls -name "kMDItemDisplayName" -name "kMDItemDurationSeconds" -raw *.wav | xargs -0 -L 2 echo | awk '{print $1 "," $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment