Hi,
Can any one give me an idea of "how to print only the modified files with in last 24 hours with atime and mtime" in perl & folder contains sub folder and sub-files.
The environment shouldn't matter... stat() tends to return the same results regardless.
Make a recursive directory scanning subroutine (one that will call itself again recursively for each folder it finds within a folder and so-on) to get a list of the paths to every file, and then call stat on the files to do with them whatever you want.
fine , i have done the same but can you give me the logic(or any loop kind of thing) of printing the only files that have changed within last 24 hours.
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.