Created
July 29, 2010 07:48
-
-
Save while0pass/497542 to your computer and use it in GitHub Desktop.
mp3 cat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Скрипт, который просматривает все подпапки текущей папки | |
и объединяет для каждой папки имеющиеся в ней mp3-файлы | |
в один mp3 c именем самой папки, где они находились. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
for i in $(find ./ -type d) | |
do | |
cat $i/*.mp3 > $(dirname $i)/$(basename $i).mp3 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(find ./ -type d); do cat $i/*.mp3 > $(dirname $i)/$(basename $i).mp3; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment