- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- In regards of search
Operating System - Linux
1753768
Members
5185
Online
108799
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
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
тАО09-01-2006 04:45 AM
тАО09-01-2006 04:45 AM
In regards of search
Hi, Sir,
How can we find the list of file created or having any changes during a particular date.
is there is any particular command please help me.
How can we find the list of file created or having any changes during a particular date.
is there is any particular command please help me.
- Tags:
- find
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2006 04:50 AM
тАО09-01-2006 04:50 AM
Re: In regards of search
First, Unix has no notion of creation date - only last modification time is tracked.
To find files created on a certain date, use the touch command to create two files, one with a timestamp of 00:01 on your target date and one with a time stamp of 23:59 on your target date. The use the find command with a combination of -newer and ! -newer (not newer) to zero in on the files you seek.
Pete
Pete
To find files created on a certain date, use the touch command to create two files, one with a timestamp of 00:01 on your target date and one with a time stamp of 23:59 on your target date. The use the find command with a combination of -newer and ! -newer (not newer) to zero in on the files you seek.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-01-2006 05:03 AM
тАО09-01-2006 05:03 AM
Re: In regards of search
First, UNIX has no notion of the creation time of a file. ctime is change time (time of last chmod, chown and mtime is time of the last data modification.
Do something like this leveraging find's -newer option to find files modified on 15-Nov-2005 starting from the current working directory.
# create 2 reference files with timestamps just before and just after the date in question
touch -m -t 200511142359.59 /var/tmp/f1
touch -m -t 200511160000.00 /var/tmp/f2
# run the find command starta CWD looking for regular files that fit the date
find . -type f \( -newer /var/tmp/f1 -a ! -newer /var/tmp/f2 \) -print
Do something like this leveraging find's -newer option to find files modified on 15-Nov-2005 starting from the current working directory.
# create 2 reference files with timestamps just before and just after the date in question
touch -m -t 200511142359.59 /var/tmp/f1
touch -m -t 200511160000.00 /var/tmp/f2
# run the find command starta CWD looking for regular files that fit the date
find . -type f \( -newer /var/tmp/f1 -a ! -newer /var/tmp/f2 \) -print
If it ain't broke, I can fix that.
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