- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 'find' command - help req'd !
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
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
06-24-2003 05:23 AM
06-24-2003 05:23 AM
From these directories, I want to find a list of files created between 17:20 and 17:30 on 23 June 2003, or if that's not possible, a list of files created on 23 June 2003 without the time criteria.
All help rewarded today !
Thanks in advance
Simon
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:28 AM
06-24-2003 05:28 AM
Re: 'find' command - help req'd !
create two file for search criteria:
touch 06231720 /tmp/a
touch 06231730 /tmp/b
then do the find:
find
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:29 AM
06-24-2003 05:29 AM
Re: 'find' command - help req'd !
You should first create 2 dummy files with timestamps :
$ touch -t 06231720 ffirst
$ touch -t 06231730 flast
Then use :
find . -newer ffirst ! -newer flast
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:29 AM
06-24-2003 05:29 AM
Re: 'find' command - help req'd !
Create with 'touch' two "reference" files:
# touch -amt 06231719 /tmp/ref1
# touch -amt 06231730 /tmp/ref2
# cd dir
# find . -newer /tmp/ref1 -a ! -newer /tmp/ref2
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:36 AM
06-24-2003 05:36 AM
Re: 'find' command - help req'd !
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:38 AM
06-24-2003 05:38 AM
Re: 'find' command - help req'd !
Try this:
touch -t 0623172003 /tmp/t1
touch -t 0623173003 /tmp/t2
find . -newer /tmp/t1 ! -newer /tmp/t2 -print
rm /tmp/t[12]
This is from UNIX Power Tools.
Elena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 05:47 AM
06-24-2003 05:47 AM
Re: 'find' command - help req'd !
a word of warning, unix does not store the creation date/time for files. It stores the modification and last access times for the file and the modification time for the inode.
If any of the files you are interested in were modified after 17:30 then Andreas' method will not list them.
If you are confident that the inode details have not changed since the files were created then you can use Andreas' method but change -newer to -newercm
HTH,
Michael.