summaryrefslogtreecommitdiff
path: root/sortsongs
diff options
context:
space:
mode:
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