Browse Source

added mp3cat script to loop through subdirs

master
marc 4 years ago
parent
commit
60e59f1ed9
1 changed files with 20 additions and 0 deletions
  1. 20
      .config/scripts/mp3cat_all_subdirs.sh

20
.config/scripts/mp3cat_all_subdirs.sh

@ -0,0 +1,20 @@
#!/bin/bash
for d in ./*; do
if [ -d "$d" ]; then
f=${d:2}
cd "$d"
echo ${f}.mp3
mp3cat -c 1 ./* -o "${f}.mp3"
mv "${f}.mp3" ../
cd ..
# echo $f
# echo $d
# cd "$d"
# ls
# cd ..
# echo "$d"
fi
done
#mp3cat -c 1 ./* -o name.mp3
Loading…
Cancel
Save