e36freak 1305518864 learn a shell option (shopt) which causes unmatched globs to expand to nothing, rather than themselves. Example: shopt -s nullglob; files=(*); echo "There are ${#files[@]} files." e36freak 1305518920 forget