The following works fine within the current folder, but I would like it to scan sub folders as well.
for file in *.mp3
do
echo $file
done
find . -name *.mp3 -exec echo {} \;
The string {}
is replaced by the current file name being processed everywhere it occurs in the arguments to the command, not just in arguments where it is alone, as in some versions of find.
Please check the find man for further info http://unixhelp.ed.ac.uk/CGI/man-cgi?find