- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- finding files changed between specific times
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
Discussions
Discussions
Discussions
Forums
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
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-17-2004 10:48 PM
тАО06-17-2004 10:48 PM
is there anyway to find out files modified / created between specific times.
eg: at 3pm i want to find and copy files which has been modified /created betten 1pm to 2pm.
regds,
bhavin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 10:59 PM
тАО06-17-2004 10:59 PM
Solutiontouch start 06171300
touch end 06171400
then execute: -
find . -newer start -a ! -newer end
This will find all files from current directory who's modified date is after "start"'s timestamp, AND NOT after "end"'s timestamp.
Sy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 11:11 PM
тАО06-17-2004 11:11 PM
Re: finding files changed between specific times
You can get the modified files as
find / -type f -mtime
If you want to know the files modified at 1- 2 pm you to execute this 2:01 PM.
Else we can go for common method as,
find / -type f | while read line; do
Get the file value with ll or ls -l
Get the date with date coomand and check for the month and date.
Problem with the ls -l or ll that
===== man ls ========
If the time of last modification is greater
than six months ago, or any time in the future, the year is
substituted for the hour and minute of the modification
time.
======================
If you are going to detect the files from root to leaf directory then this operation will take some time.
Regards,
Muthukumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 11:33 PM
тАО06-17-2004 11:33 PM
Re: finding files changed between specific times
You can use ls -ltc to get the list of files sorted on ctime. This can be used to find the the time of creation/modification of the file.
see manpage of ls
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-17-2004 11:46 PM
тАО06-17-2004 11:46 PM
Re: finding files changed between specific times
Let us come to feasible solution.
Create the file with 01.00 PM with touch
as touch -t 06180100 start (MMDDHHMM)
end file as
touch -t 06180200 end
Use the find command to find only the files as
find / -type f -newer start ! -a -newer end
It will give the created / modified (only the ) files in the duration
Regards,
Muthukumar.