|
how to find the number of files
hi,
1) I want to find from the current directory the number of files (count) with two or more particular extentions in another directory.
For ex: If I am in a/b/c directory... I want to find the count of the files with .txt and .dat extention in a/d/e directory. I have tried using the below one:
a/b/c> ls a/d/e/*.txt *.dat | wc -l --- this is not working.. Please help.
2) In the above directory a/d/e, i want to get the name of the last file with extention *.dat-- how to get it
Thanks in advance,
Harish
|