If you want add a .htaccess file into each subdirectory of a folder type:
#~ find /home/mydirectory/public_html/ -type d -exec sh -c ‘echo “allow from all” > {}/.htaccess’ \;
This code will create an .htaccess into each subdirectoty with content “allow from all”.
Tags: .htaccess, file count, file creation, file distribution, files