dotfiles/home/default/scripts/generate-playlists
2024-11-02 15:38:09 -04:00

9 lines
188 B
Bash
Executable File

#!/usr/bin/env sh
set -ou pipefail
for dir in */; do
name=`echo "$dir" | sed 's/\/$//g'`
(cd $dir && echo "#EXTM3U" > "$name.m3u" && ls | grep -v -E '\.txt|\.m3u' >> "$name.m3u")
done