GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Using find non-recursively?
Operating System - HP-UX
1855469
Members
4103
Online
104111
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
10-20-2003 06:20 PM
10-20-2003 06:20 PM
Hi All
I need to use a find command because I need to use the -exec functionality, but only on files found in the current directory, not sub-directories. What I am doing is deleting files in the current directory which are older than 10 minutes, but I do not want to delete the files which confirm to the search specification in the sub-directories.
Any ideas please?
Thanks
Carlo
(Score 173/173)
I need to use a find command because I need to use the -exec functionality, but only on files found in the current directory, not sub-directories. What I am doing is deleting files in the current directory which are older than 10 minutes, but I do not want to delete the files which confirm to the search specification in the sub-directories.
Any ideas please?
Thanks
Carlo
(Score 173/173)
Live fast, die young - enjoy a good looking corpse!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:37 PM
10-20-2003 06:37 PM
Re: Using find non-recursively?
My only idea is to move the subdirectories and create symbolic links to it... By default, find does not follow symbolic links. But it is only workaround
-Tomek
-Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2003 06:43 PM
10-20-2003 06:43 PM
Re: Using find non-recursively?
find . -path "./*" -prune -print|xargs rm
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP