Bitt, or anyone in the know on shell scripts, i'm hoping one of you guys can assist me with some issues I'm having with a shell script.
I want to run an executable on each and every flac file in a given directory (including sub-directories). My problem is in the generation of the for/do loop.
for i in `find $1 -name '*.flac' -print` ; do \
echo $i; done
This script pukes on directories/files with spaces and other odd characters in the name. Evidently the "for" loop will look for a space in a line, and assume it's a new item.
is there any way to escape the directory/file names in the find so it doesn't puke on the for?
Greg
_________________________