![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to find the average number or files? | bbbngowc | Shell Programming and Scripting | 2 | 03-27-2008 08:57 AM |
| To find pid from port number | gmat | HP-UX | 6 | 12-31-2007 03:43 AM |
| awk script to find the number of files | uni_ajay_r | Shell Programming and Scripting | 4 | 10-31-2006 02:58 PM |
| how to find serial number | chomca | AIX | 3 | 05-26-2006 07:00 AM |
| How to find number of processes ? | ArabOracle.com | SUN Solaris | 2 | 02-13-2006 11:29 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks man... its working.. can you answer the 2nd query tooo ...
|