Skip to content

Instantly share code, notes, and snippets.

@vi7
Created January 23, 2025 16:13
Show Gist options
  • Save vi7/e9ff45283b62df04eed21072d68a1579 to your computer and use it in GitHub Desktop.
Save vi7/e9ff45283b62df04eed21072d68a1579 to your computer and use it in GitHub Desktop.
M3U playlist generator bash script
#!/bin/bash
playlist="playlist.m3u"
echo "#EXTM3U" > "$playlist"
find . -type f -iname "*.mp3" | while read -r file; do
echo "$file" >> "$playlist"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment