Skip to content

Instantly share code, notes, and snippets.

@TheyCallMeLinux
Created February 22, 2023 01:42
Show Gist options
  • Save TheyCallMeLinux/5a12fb06d9d3ffd52c0814970e5f1a14 to your computer and use it in GitHub Desktop.
Save TheyCallMeLinux/5a12fb06d9d3ffd52c0814970e5f1a14 to your computer and use it in GitHub Desktop.
VLC make playlist m3u from current pwd
find "$PWD" -type f \( -name '*.webm' -o -name '*.mp4' -o -name '*.avi' \) -printf "#EXTINF:%s,%f\n%P\n" | sed 's/ /%20/g;s/\[/%5B/g;s/\]/%5D/g' > playlist.m3u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment