Unix - Addressing filename with space for script [duplicate]

view story

http://unix.stackexchange.com – This question already has an answer here: Trouble in script with spaces in filename 1 answer I have files Deep.flac and A1 - Rolling In The Deep.flac I wrote the script below, however it can only work with Deep.flac It cannot seem to work with filenames with spaces. I am newbie, learning unix system though my OSX. Since i am new to unix, i am wondering how to best solve this issue. Basically, I am using sox to convert my flac to aiff while keeping the name of the files intact. My (HowTos)