- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: list all files in the system which had a parti...
Operating System - HP-UX
1752618
Members
4297
Online
108788
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
тАО07-24-2009 11:27 AM
тАО07-24-2009 11:27 AM
I want to list all the files in the system which has the timestamp of May 17 on it. since it is the current year i am not worried about the year stamp. How would i do this?
Thanks
Mike
Thanks
Mike
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 11:35 AM
тАО07-24-2009 11:35 AM
Re: list all files in the system which had a particular date
Hi Mike:
One way:
# touch -amt 05162359.59 /tmp/ref1
# touch -amt 05172359.59 /tmp/ref2
# find / -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec ls -ld {} +
Regards!
...JRF...
One way:
# touch -amt 05162359.59 /tmp/ref1
# touch -amt 05172359.59 /tmp/ref2
# find / -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec ls -ld {} +
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 11:45 AM
тАО07-24-2009 11:45 AM
Re: list all files in the system which had a particular date
Thanks Jrf
But this hogs the cpu on my nclass server with 8 cpu's and it still hangs, should i wrtite it some file?
Thx
Mike
But this hogs the cpu on my nclass server with 8 cpu's and it still hangs, should i wrtite it some file?
Thx
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 11:49 AM
тАО07-24-2009 11:49 AM
Solution
Hi Mike:
> But this hogs the cpu on my nclass server with 8 cpu's and it still hangs, should i wrtite it some file?
Well of course it spins the processors! You ased for "all the files in the system" so we need to recursively search _everything_. Then for each file or directory 'find()' sees it must 'stat()' the entity and compare the 'mtime' to the reference values. This _does_ take some time.
Yes, I would redirect the output to a file and go get some coffee.
# find / -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec ls -ld {} + > /tmp/files_for_may17
Regards!
...JRF...
> But this hogs the cpu on my nclass server with 8 cpu's and it still hangs, should i wrtite it some file?
Well of course it spins the processors! You ased for "all the files in the system" so we need to recursively search _everything_. Then for each file or directory 'find()' sees it must 'stat()' the entity and compare the 'mtime' to the reference values. This _does_ take some time.
Yes, I would redirect the output to a file and go get some coffee.
# find / -type f -newer /tmp/ref1 -a ! -newer /tmp/ref2 -exec ls -ld {} + > /tmp/files_for_may17
Regards!
...JRF...
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