- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: find files modified on a certain date
Operating System - HP-UX
1820267
Members
2800
Online
109622
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
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-12-2006 03:06 AM
тАО07-12-2006 03:06 AM
I need to search the whole filesystem for all those files being modified/accessed on Jan 26,2006.
How can I use "find" command to do that?
Thanks!
How can I use "find" command to do that?
Thanks!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2006 03:15 AM
тАО07-12-2006 03:15 AM
Re: find files modified on a certain date
Use the touch command to create two files, one dated 23:59 on Jan 25 and one date 00:01 on Jan 27. Then you can use find's - newer option (and it's antithesys ! -newer) to zero in on just the files you want. See the man pages for touch and find.
Pete
Pete
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2006 03:18 AM
тАО07-12-2006 03:18 AM
Re: find files modified on a certain date
Shalom,
I'd suggest the following:
make a file called /tmp/timestamp
put in it 200601260000
find /fsname -newer /tmp/timestamp > list1
Change the date in /tmp/timestamp to 200601270000
find /fsname -newer /tmp/timestamp > list2
compare the two files with diff command.
You may be able to make this work with the +mtime parameter
+mtime
SEP
I'd suggest the following:
make a file called /tmp/timestamp
put in it 200601260000
find /fsname -newer /tmp/timestamp > list1
Change the date in /tmp/timestamp to 200601270000
find /fsname -newer /tmp/timestamp > list2
compare the two files with diff command.
You may be able to make this work with the +mtime parameter
+mtime
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2006 03:18 AM
тАО07-12-2006 03:18 AM
Solution
Hi:
Create two reference files and search for files that were modified/accessed between the time boundries of the reference files:
# touch -amt 200601260000 /tmp/ref1
# touch -amt 200601262359 /tmp/ref2
# find /path -xdev -type f -newermm /tmp/ref1 -a ! -newermm /tmp/ref2
...finds candidates based on *mtime*.
# find /path -xdev -type f -neweraa /tmp/ref1 -a ! -neweraa /tmp/ref2
...finds candidates based on *atime*.
If you want to search every filesystsem, drop the '-xdev' argument that confines you to your mountpoint and do:
# find / - type f ...
See the manpages for 'find' for more information.
Regards!
...JRF...
Create two reference files and search for files that were modified/accessed between the time boundries of the reference files:
# touch -amt 200601260000 /tmp/ref1
# touch -amt 200601262359 /tmp/ref2
# find /path -xdev -type f -newermm /tmp/ref1 -a ! -newermm /tmp/ref2
...finds candidates based on *mtime*.
# find /path -xdev -type f -neweraa /tmp/ref1 -a ! -neweraa /tmp/ref2
...finds candidates based on *atime*.
If you want to search every filesystsem, drop the '-xdev' argument that confines you to your mountpoint and do:
# find / - type f ...
See the manpages for 'find' for more information.
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP