I'm trying to create a for loop on folders that contain spaces, comma's and parenthesis. For example: 
`Italy - Rimini (Feb 09, 2013)`

First it scans a parent folder /albums for sub-folders that look like in the example above. Then it executes a curl actions on files in thoses sub-folders. It works fine if the sub-folders do not contain spaces, comma's or other symbols.

```sh
for dir in `ls /albums`;
do
    for file in /albums/$dir/*
    do
            curl http://upload.com/up.php -F uploadfile[]=@"$file" > out.txt
            php process.php 
    done
    php match.php
done

```

But if there are such symbols, it seems the the curl bit gets stuck - it can't find the $file (probably because $dir is incorrect). 

I could replace all the symbols in the sub-dirs or remove them or rename the folders to 001, 002 and it works flawlessly. But before resorting to that I'd like to know if it can be solved using bash tricks while keeping the sub-folder name intact?