summaryrefslogtreecommitdiff
path: root/bin/cpmp3
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cpmp3')
-rwxr-xr-xbin/cpmp37
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/cpmp3 b/bin/cpmp3
new file mode 100755
index 0000000..49d17cf
--- /dev/null
+++ b/bin/cpmp3
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+find . -name "*.mp3" | while read -r name; do
+ d="../mp3/${name%/*}"
+ mkdir -p "$d"
+ cp "$name" "$d"
+done