Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

generate-all.sh (Source)

#!/usr/bin/env sh
find /mnt/public/Music/Christmas/ ! \( \
   -ipath '*/Various/*' \
   -o -ipath '*/Other Artist To Skip/*' \
\) -name '*.mp3' | sed -r -e 's@^@file://@;' -e 's@ @%20@g;' | shuf > /mnt/public/Music/Christmas/all-christmas.m3u