I’m struggling very hard with HP-UX find command! :/ Appreciate if someone could help me out here.
I’ve a directory structure, e.g. (there a thousands of directories, so I just list a few here):
/home/amark: ls -ld 000fl* off*
drwxrwxr-x 3 ab users 8192 May 10 2005 000fl0
drwxrwxr-x 3 ab users 8192
platy 65: ls -ld 000fl*
drwxrwxr-x 3 ab user 8192 May 10 2005 000fl1
drwxrwxr-x 3 ab user 8192 May 10 2006 offx
I want to list all directories that contain files of more than 60days old except for the offx directory.
So I issued this command:
find /home/amark -type d -mtime +60 -name offx -prune -o -exec ls -ld {} \;
But this does not work.
How do I list the directories then?