for i in $(ls -1) do cd ${i} chmod 664 * cd .. done