Suppose I have a set of directories as lane1, lane2, lane3, file1, file2..under /home/userrig/test in a linux server. And the last updated directory is lane3.
lane1, lane2 and lane3 are directories and file1 and file2.. are under files under /home/userrig/test.
I am only interested in directory that starts with
How do I collect this information? Infact after cheking for the last updated directory, I have to change to that directory and execute a command in
method.
Is there any function to sort the directory according to time like "ls - lt" as in unix command? Please let me know how to proceed?
Thanks and Regards