To change every directory to have ug+rwx and [http://www.faqs.org/faqs/hp/hpux-faq/section-70.html sticky]:
 
To change every directory to have ug+rwx and [http://www.faqs.org/faqs/hp/hpux-faq/section-70.html sticky]:
<pre>
+
find . -type d -print0 | xargs -0 chmod 1770
find . -type d -print0 | xargs -0 chmod 1770
+
</pre>
+
 
-print0 and -0 are to [http://www.linuxdevcenter.com/pub/a/linux/lpt/09_22.html deal with spaces in the filenames].
 
-print0 and -0 are to [http://www.linuxdevcenter.com/pub/a/linux/lpt/09_22.html deal with spaces in the filenames].
      
For read/write but NOT execute on normal files:
 
For read/write but NOT execute on normal files:
<pre>
+
find . -type f -print0 | xargs -0 chmod 0660
find . -type f -print0 | xargs -0 chmod 0660
+
</pre>
+
<div style="overflow: auto; height: 1px;">
+
   −
[_pw9_]
+
To delete old files (e.g. older than one day):
 +
find . -mtime +1 -exec rm {} \; 
   Exception encountered, of type "Error"