From ec431798bd5b873d3f207a78cfef290aafd1d1bc Mon Sep 17 00:00:00 2001 From: anonymous <> Date: Tue, 19 Dec 2023 14:51:49 -0500 Subject: [PATCH] create/update 'HowTo - Beets Music Library Cleanup.md' file --- HowTo - Beets Music Library Cleanup.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 HowTo - Beets Music Library Cleanup.md diff --git a/HowTo - Beets Music Library Cleanup.md b/HowTo - Beets Music Library Cleanup.md new file mode 100644 index 0000000..8856f50 --- /dev/null +++ b/HowTo - Beets Music Library Cleanup.md @@ -0,0 +1,17 @@ +# Music cleanup one-liners + +## Find albums with less than 3 tracks +Useful for finding directories that contain only artwork + +```bash +NUM=3 && find /mnt/phnas02/music -maxdepth 2 -mindepth 2 -type f -printf '%h\0' | awk -v num="$NUM" 'BEGIN{RS="\0"} {array[$0]++} END{for (line in array) if (array[line]