The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-10-2007
dmwaff dmwaff is offline
Registered User
  
 

Join Date: Aug 2001
Location: Texas
Posts: 17
I may have read the posting incorrectly, but if you are attempting to exclude the the backup and/or print subdirectory and operate only on the the rest of the home, then:

find /local/home/username -name print -prune -o -mtime +30 -ls

mutliple prunes if you want (spaces important)

find /local/home/username \( -name print -o -name dir2 -o -name dir3 \) -prune -o -mtime +30 -print

-David