07-04-2012
Find only files that changed Yesterday
Hi ,
I know that find / -type f -mtime -1 will show all modified files that changed 24hrs preceeding the time i run the command. This will include list of files that changed today.
How do i find only files that changed yesterday staring from 00:00hrs to 23:59?
Thanks
HG
Last edited by radoulov; 07-04-2012 at 04:26 AM..
Reason: code tags
10 More Discussions You Might Find Interesting
1. AIX
Hello, we are going through a restructoring of file systems and will need to copy the contents of one file system to another box, then a few days later copy it again. Is there a way on the second copy to only copy files that have changed? Thanks in advance (3 Replies)
Discussion started by: zuessh
3 Replies
2. Shell Programming and Scripting
I have been toying around with a script that will copy all files altered in a development directory over to a testing directory and have been trying to construct the command to meet my needs.
Basically I am using find in a directory to see what files have changed over the past 24 hours. Then if... (4 Replies)
Discussion started by: scotbuff
4 Replies
3. Shell Programming and Scripting
I have searched about 30 threads, a load of Google pages and cannot find what I am looking for. I have some of the parts but not the whole. I cannot seem to get the puzzle fit together.
I have three folders, two of which contain different versions of multiple files, dist/file1.php dist/file2.php... (4 Replies)
Discussion started by: bkeep
4 Replies
4. AIX
I am trying to write a script to ftp all files/directories changed in a 24hour period to another AIX server. I have wrote a script to generate a list of all files changed within a 24 hour period but dont know how to then ftp these to another server. How do incorporate ftp into this script?
... (2 Replies)
Discussion started by: RApds
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can you guys tell me how do i find the most recently changed files, say an hour before, few hours before, a day before etc....
Thanks!!!! (3 Replies)
Discussion started by: raghu_shekar
3 Replies
6. Solaris
I want to investigate why CPU utilization was high yesterday on my solaris 10 machine.
I have been reported this problem but how can I investigate why CPU utilization went high at that time? :confused: (4 Replies)
Discussion started by: kashif_islam
4 Replies
7. UNIX for Dummies Questions & Answers
Can any one tell me is there any command to find out who changed the permission of a file Or is there any log file so that i can find out who has changed the permission of a file?
Thanks in Advance:) (7 Replies)
Discussion started by: Uttamnsd
7 Replies
8. Shell Programming and Scripting
Hi All,
Can you please help me to get only the files which has the modified date as yesterday and before?
Thanks in advance!
Regards,
Velava.S (4 Replies)
Discussion started by: velava
4 Replies
9. Shell Programming and Scripting
Hi
I've the following requirement, where i need to zip the yesterday files every day .
Yesterday's Files
touch AB_XYZA_20130930183017.log
touch AB_DY_XYZA_20130930183017.log
touch AB_GZU_20130930183017.log
touch AB_XYZA_20130930180023.log
touch AB_DY_XYZA_20130930180023.log
touch... (1 Reply)
Discussion started by: smile689
1 Replies
10. Shell Programming and Scripting
I dont want to use for loop since it is using a lot of resources especially to a thousand files. Wanting to have a while? or something will find files that has been modifed or created yesteraday. View it. And search for soemthing and save it to a certain folder.
for i in `find ./ -mtime... (3 Replies)
Discussion started by: invinzin21
3 Replies