Skip to content

Instantly share code, notes, and snippets.

@enamoria
Last active July 3, 2019 03:51
Show Gist options
  • Save enamoria/5a8e631b81dee30840a2e41fc5fa6d64 to your computer and use it in GitHub Desktop.
Save enamoria/5a8e631b81dee30840a2e41fc5fa6d64 to your computer and use it in GitHub Desktop.
Sweet bashscript o' mine
# copy a list of file (from file_id_list) from src to dest
cat file_id_list | awk '{system("cp " $1 " <dest_dir")}'
# total time of audio file within a directory
soxi -D *.wav | awk '{sum+=$1} END {print sum}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment