- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: FIND command..stop it from processing sub-dirs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 04:01 AM
тАО06-09-2008 04:01 AM
Re: FIND command..stop it from processing sub-dirs
root > find /loc/A/* -prune ! -type d ! -newer /tmp/june3.ref -exec ls {} \;
I put the /* after the pathname
And reorderd the options.
Here are 3 lines of the output. But I had hundreds of lines and none (verified with grep) had files in any subdirectories.
/loc/A/54482.log
/loc/A/54484.lis
/loc/A/54484.log
Anyone see any potential flaws with this?
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 04:01 AM
тАО06-09-2008 04:01 AM
Re: FIND command..stop it from processing sub-dirs
> Thanks James but the -path option doesn't appear to be valid for Tru64.
Well, this is the *HP-UX* formum! You should have posted this in the Tru64 UNIX family:
http://forums11.itrc.hp.com/service/forums/familyhome.do?familyId=280
You can ask to have it moved, here:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1236703
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 04:06 AM
тАО06-09-2008 04:06 AM
Re: FIND command..stop it from processing sub-dirs
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2008 04:22 AM
тАО06-09-2008 04:22 AM
Re: FIND command..stop it from processing sub-dirs
because you made the following request:
find /loc/A ! -newer /tmp/june3.ref -type f -exec ls -l {} \;
If you avoid all what I made the first directory encountered is A; so the -prune avoid to continue. and it will display nothing
When you make it from . it is different as we are already in the current directory, so - prune don't cut the display.
Why I didn't use find /loc/A/* -prune ! -type d ! -newer /tmp/june3.ref -exec ls {} \;
because if I have hidden files begining with a "." then they will not be seen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2008 11:08 PM
тАО07-03-2008 11:08 PM
Re: FIND command..stop it from processing sub-dirs
Thanks for the help.
I got onto other things. I'll post what I did once I find that darn command I used.
- « Previous
-
- 1
- 2
- Next »