Hi,
I am looking for a command to search for a specific file which was recently modified in the current directory leaving some unwanted files to be listed.
For example, when I try
it shows the following output.
[HTML
-rw-rw-r-- 1 repdev pcenter 1593 Sep 26 09:08 2_0.dat.idx
-rw-rw-r-- 1 repdev pcenter 979 Sep 26 09:08 2_0.dat
-rw-rw-r-- 1 repdev pcenter 1598 Sep 26 09:08 3_0.dat.idx
-rw-rw-r-- 1 repdev pcenter 2917 Sep 26 09:08 3_0.dat
-rw-rw-r-- 1 repdev pcenter 22046 Sep 26 09:44 5_resend_0.dat
-rw-rw-r-- 1 repdev pcenter 1116 Sep 26 09:44 13_resend_0.dat
-rw-rw-r-- 1 repdev pcenter 12592 Sep 26 10:04 1_0.dat
[/HTML]
I want to ommit the files with the name 'resend' and with .idx or any other extension except .dat extension and print the latest changed file from .dat extension.
In this case I want to print only the last entry of the above output
HTML Code:
-rw-rw-r-- 1 repdev pcenter 12592 Sep 26 10:04 1_0.dat
Thanks,
Sri