Did you keep the "#!/bin/bash " at the beggining of the script? I think the <i>shopt </i>command only works in bash. What happens if you type it directly on the terminal?

By the way, the difference between the script on stackoverflow and the one I pasted, is that mine scans directories recursively.

        
        
        
<br/><hr align="left" width="300" />
Sent from the <a href="http://digikam.1695700.n4.nabble.com/digikam-users-f1735189.html">digikam-users mailing list archive</a> at Nabble.com.<br/>