summaryrefslogtreecommitdiff
path: root/sortsongs
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-10-09 01:19:04 -0500
committerzachir <zachir@librem.one>2022-10-09 01:19:04 -0500
commit0ad890bae271b17a7eaf76f70b2c462e4ca10333 (patch)
treee81457c2d4cf414a66edb010b4cfbc2e0974e400 /sortsongs
parentd36e7cd095371deb8b70115fc7817d351bcfa645 (diff)
reorganize .local/bin folder
Diffstat (limited to 'sortsongs')
-rwxr-xr-xsortsongs10
1 files changed, 0 insertions, 10 deletions
diff --git a/sortsongs b/sortsongs
deleted file mode 100755
index 510af26..0000000
--- a/sortsongs
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/sbin/sh
-
-ls *.mp3 | while read i; do
- DATA="$(gettags "$i")"
- ARTIST=$(echo "$DATA" | cut -d'|' -f2)
- ALBUM=$(echo "$DATA" | cut -d'|' -f1)
- [ ! -d "$ARTIST"/"$ALBUM" ] && mkdir -p "$ARTIST"/"$ALBUM"
- mv "$i" "$ARTIST"/"$ALBUM"/.
- echo "$i"
-done