- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find files older than certain timestamp
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
08-23-2000 04:09 AM
08-23-2000 04:09 AM
Find files older than certain timestamp
Is there a way to find/list files with file-dates with a specific date/time-stamp.
For example, find files older than 22-08-2000 18:00 hours.
This, of course, to be used in a script to mv, zip or delete these specific files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 04:25 AM
08-23-2000 04:25 AM
Re: Find files older than certain timestamp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 04:27 AM
08-23-2000 04:27 AM
Re: Find files older than certain timestamp
To begin with, excuse me for my english.
A simple way is to use other file how reference for time.
For example if you have the following file:
Aug 22 18:00 example_file
you can find and remove files older than example_file with:
find . ! -newer example_file -exec rm {} ;
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 04:29 AM
08-23-2000 04:29 AM
Re: Find files older than certain timestamp
Check a previous solution : http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x194b49c5ae73d4118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 04:32 AM
08-23-2000 04:32 AM
Re: Find files older than certain timestamp
I suppose you could use a combination of find -newer
1. Use touch to create a file w/ timestamp you need (touch -t 200008231200 reffile)
2. Create a list (list1) of all files newer than that time using find . -newer reffile
3. Create a list (list2) of all files using find . -print
4. Do whatever you want with the files in list2 that are not in list1.
Bye,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2000 04:34 AM
08-23-2000 04:34 AM
Re: Find files older than certain timestamp
Manuel's solution is of course much better than mine!!!
Bye,
Rik.