HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find a file by time stamp
Operating System - HP-UX
1829745
Members
1213
Online
109992
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
Forums
Discussions
Discussions
Discussions
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
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-27-2003 10:28 PM
10-27-2003 10:28 PM
Hi to all,
How to find a file by time stamp. e.i. I want to find a file with a time stamp between Oct 27 9:30 PM and Oct 28 06:30 am.
Thanks in advance :)
Joseph
How to find a file by time stamp. e.i. I want to find a file with a time stamp between Oct 27 9:30 PM and Oct 28 06:30 am.
Thanks in advance :)
Joseph
Expect nothing but ready for everything
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 10:36 PM
10-27-2003 10:36 PM
Solution
Between times isnt easy. I know of no command to do it in one go. I would try something like;
ll -R | grep -e "Oct 28 01:" -e "Oct 28 02:" -e "Oct 28 03:" -e "Oct 28 04:" -e "Oct 28 05:" -e "Oct 28 06:"
To find files from Oct 28 01-06am, a similar command for Oct 27 9:30pm to midnight.
ll -R | grep -e "Oct 28 01:" -e "Oct 28 02:" -e "Oct 28 03:" -e "Oct 28 04:" -e "Oct 28 05:" -e "Oct 28 06:"
To find files from Oct 28 01-06am, a similar command for Oct 27 9:30pm to midnight.
Im from Palmerston North, New Zealand, but somehow ended up in London...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2003 10:46 PM
10-27-2003 10:46 PM
Re: How to find a file by time stamp
The easiest way I can think is to create 2 files, with tbe begin and end time stamps, then use find.
Something like:
touch -t 200310272130 earliest
touch -t 200310280630 latest
find . -type f -newer earliest ! -newer latest -exec ls -ld {} \;
see "man touch", man "find"
-- Graham
Something like:
touch -t 200310272130 earliest
touch -t 200310280630 latest
find . -type f -newer earliest ! -newer latest -exec ls -ld {} \;
see "man touch", man "find"
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
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 2025 Hewlett Packard Enterprise Development LP