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
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
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-19-2000 12:57 AM
09-19-2000 12:57 AM
% find . -type f -mtime +30 -exec rm{} ;
Why does it work?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:07 AM
09-19-2000 01:07 AM
Re: find
i.e find ..... rm{} ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:08 AM
09-19-2000 01:08 AM
Re: find
What exactly is your problem?
The command
'find . -type f -mtime +30 -exec rm {} \;'
will remove files in the current directory (and any sub-directories) which have a modified time earlier than 31 days from now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:10 AM
09-19-2000 01:10 AM
Re: find
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:10 AM
09-19-2000 01:10 AM
Re: find
The command you should run is:
find . -type f -mtime +30 -exec rm{} ;
Federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:17 AM
09-19-2000 01:17 AM
Re: find
find . -type f -mtime +30 -exec rm{} ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:20 AM
09-19-2000 01:20 AM
Re: find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:29 AM
09-19-2000 01:29 AM
Re: find
# ll |wc
84 749 5875
# find . -type f -mtime +30 -exec {} ;
# ll |wc
84 749 5875
I run the above command, but it doesn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:43 AM
09-19-2000 01:43 AM
Re: find
The 'rm' is missing from your last post, is that a typo?
Specifying a null command to '-exec' will not give an error and will do nothing.
What are the dates on your files?
I assume that the backslash has been eaten by the system. You need to type two(//) to get one on this forum.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 01:47 AM
09-19-2000 01:47 AM
Re: find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2000 02:29 PM
09-19-2000 02:29 PM
Re: find
The backslash will be fixed in the next release scheduled for late October. Thank you for bringing this matter to our attention and for being so patient.
Kind regards,
Shayne Wagley
ITRC Forums Administrator
Hewlett-Packard