- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to stop find decending 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
Forums
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
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
тАО09-18-2002 07:05 AM
тАО09-18-2002 07:05 AM
How to stop find decending sub dirs
find in a dir without decending through
the sub directories?
I just can't get my head around the find man page.
I have used the _nasty_ workaround
find /archive/* -prune -type f -print
but it, of course, does not work with
lots of files (too many arguments)
Any clues?
Thanks
/Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 07:07 AM
тАО09-18-2002 07:07 AM
Re: How to stop find decending sub dirs
By example:
# cd /tmp; find . -path "./*" -prune -name "*.log" -type f
...will return all files ending with ".log" in the /tmp directory but not those in subdirectories.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 07:08 AM
тАО09-18-2002 07:08 AM
Re: How to stop find decending sub dirs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 07:22 AM
тАО09-18-2002 07:22 AM
Re: How to stop find decending sub dirs
any chance you know of a generic
find command that works on more unixes
than hpux, (-path only works on hpux)
(I work on DEC/SUN as well as HP)
Cheers
/Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 07:29 AM
тАО09-18-2002 07:29 AM
Re: How to stop find decending sub dirs
It not only has -path, but also -maxdepth.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2002 07:32 AM
тАО09-18-2002 07:32 AM
Re: How to stop find decending sub dirs
No, I'm sorry I don't know of another form without '-path'.
Regards!
...JRF...