Skip to content

Instantly share code, notes, and snippets.

@noah
Created July 20, 2011 21:58
Show Gist options
  • Save noah/1096031 to your computer and use it in GitHub Desktop.
Save noah/1096031 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# simplify gnupod_addsong.pl syntax
#
# point it at a directory to add all .mp3 recursively
if [ $# -eq 0 ]; then
echo "$0 <dir>"
exit -1
fi
unsetopt CASE_GLOB
while [ $# -gt 0 ]; do
find "$1" -type d | while read line; do
eval "gnupod_addsong.pl \"$line\"/*.mp3 2> /dev/null"
done
shift
done
mktunes.pl
df -h|grep ipod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment