Bash Programming, Recursive/Iterative Calls on Folder Contents
Here is the issue - im trying to code a script that checks my mp3 tags and sorts them into a folder accordingly.
I got a title called mp3info and use it in conjunction with my code:
Here is what i have:
echo Current Folder is $ROOT, what subfolder do you want to sort?
read SBFLDR #torrents/complete/Semisonic - All About Chemistry
mp3info -p %a *.mp3 | artistmakefolder
#cp * "$ROOT/Music/$SBFL"
artistmakefolder takes the output of mp3info -p %a (which gets the artist name) and creates a folder based on the name.
My issue is that since it isn't recursive or iterative, my folder names are:
WilcoWilcoWilcoWilcoWilco - how ever many mp3s i have in my folder since i specified *.mp3.
Is there a way to go through and say.. for(mp3listed first in ls output)until(mp3listed last in ls output) pipe artist name into my program artistmakefolder.
I guess that is the real qustion - god i did not explain it well....