I just found ls -t gives sort by time stamp (latest first).
But I havent been able to put them together.
Then single out the last modified file, in order to compare it to another filename.
I have to find the last modified file on a given date in the cwd.
So far I know (with a random example of date here)
ls -ltr | grep '2010-08-20'
gives me the list of files in the cwd on that date.
I then need to find the last modified file of this list.
I know
find . -newer filename gives...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.