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?
This conversation is currently closed to new comments.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
HP-UX find command
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?