Are you certain you want to do that?
making things rwxrwxrwx is seldom a good idea
For the purpose of illustration
Code:
for file in *
do
if [ -d $file ]; then
pushd $file
sudo chmod ugo+rwx *
popd
else
sudo chmod ugo+rwx $file
fi
done
BUT that will only chmod files in current dir and 'one level below' dir
if you wanted to chmod ALL files/dir below current ( excluding hidden files/dirs, i.e. those being with "." , that are in the current), then
seriously, it is a bad idea.
why do you want/need to do this?