-
-
Save Wartz/723241bd5ecf10b91971 to your computer and use it in GitHub Desktop.
Create a playlist of media files in a specified folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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