- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- FIND in specific directory
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
тАО03-23-2007 12:08 AM
тАО03-23-2007 12:08 AM
I have got a directory: /home/aa/
There are some subdirectories in it:
/home/aa/a
/home/aa/b
/home/aa/..
I want to find all files in /home/aa/ older then 10 day
When I run: | find /home/aa/ -type f -mtime +10 | I have got output with data from subdirectories.
Are there any ways to run this search only in /home/aa/ directory?
Cheers
Vadim
Solved! Go to Solution.
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 12:15 AM
тАО03-23-2007 12:15 AM
Solutioncd /home/aa
find . -type f -mtime +10 ! -path "./*/*"
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
So far you have not awarded any points !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 12:16 AM
тАО03-23-2007 12:16 AM
Re: FIND in specific directory
try the -depth parameter.
Don't have any Unix boxes on in my house but the paramter is available on linux and may be worth a look.
There are online man pages for HP-UX at http://docs.hp.com
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 12:27 AM
тАО03-23-2007 12:27 AM
Re: FIND in specific directory
Pete
Pete
- Tags:
- -prune
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 12:32 AM
тАО03-23-2007 12:32 AM
Re: FIND in specific directory
Check this thread with similar question:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1084860
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 01:08 AM
тАО03-23-2007 01:08 AM
Re: FIND in specific directory
could I draw your attention to:
http://66.34.90.71/ITRCForumsEtiquette/after.html
After having read this, you may want to use
http://forums1.itrc.hp.com/service/forums/helptips.do?#41
to re-open your threads to award points.
Your earlier threads are:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1108742
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 01:28 AM
тАО03-23-2007 01:28 AM
Re: FIND in specific directory
To be honest I have assigned some points to everyone for this and for my previous thread. But now I see that status is still ├в unassigned├в .
I am gonna fix it very soon.
Cheers
Regards,
Vadim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2007 01:36 AM
тАО03-23-2007 01:36 AM