Skip to content

Instantly share code, notes, and snippets.

@Wartz
Last active August 29, 2015 14:17
Show Gist options
  • Save Wartz/723241bd5ecf10b91971 to your computer and use it in GitHub Desktop.
Save Wartz/723241bd5ecf10b91971 to your computer and use it in GitHub Desktop.
Create a playlist of media files in a specified folder
#!/bin/bash
if [ "$#" -gt 0 ] ; then
find "$1" -maxdepth 1 -type f -iregex ".*\.\(aac\|flac\|mp3\|ogg\|wav\|mp4\|mkv\|avi\)$" > "$1"/playlist
else
echo "Please provide a foldername";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment