- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: is it possible to delete files by DATE ?
Operating System - Tru64 Unix
1748249
Members
3717
Online
108760
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
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
тАО03-18-2004 11:56 PM
тАО03-18-2004 11:56 PM
Hello all,
I wpuld like to know if it├В┬┤s possible to delete files by date instead of name.
Thanks a lot
Bru
I wpuld like to know if it├В┬┤s possible to delete files by date instead of name.
Thanks a lot
Bru
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2004 01:03 AM
тАО03-19-2004 01:03 AM
Solution
Hi Bruno,
You can use "find" command to find and delete files older than certain date. E.g.
# find /user -ctime +3 -exec rm {} \;
will find and delete all files created more than three days ago under /user directory.
See man pages for find for more details about options.
Regards
Emil L. Dragic
You can use "find" command to find and delete files older than certain date. E.g.
# find /user -ctime +3 -exec rm {} \;
will find and delete all files created more than three days ago under /user directory.
See man pages for find for more details about options.
Regards
Emil L. Dragic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2004 02:47 AM
тАО03-19-2004 02:47 AM
Re: is it possible to delete files by DATE ?
Hi Bruno,
as my predecessor said, find is the command of choice and info can be found in man pages.
You can search by modification time or access time of a file or by modification time of the inode of the file. This is:
mtime
atime
ctime
Time is in days and used with +,- or space.
+1 means 2days plus
-1 means less than 1day
1 means 1day.
greetings,
Michael
as my predecessor said, find is the command of choice and info can be found in man pages.
You can search by modification time or access time of a file or by modification time of the inode of the file. This is:
mtime
atime
ctime
Time is in days and used with +,- or space.
+1 means 2days plus
-1 means less than 1day
1 means 1day.
greetings,
Michael
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP