The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to find the average number or files? bbbngowc Shell Programming and Scripting 2 03-27-2008 12:57 PM
To find pid from port number gmat HP-UX 6 12-31-2007 07:43 AM
awk script to find the number of files uni_ajay_r Shell Programming and Scripting 4 10-31-2006 06:58 PM
how to find serial number chomca AIX 3 05-26-2006 11:00 AM
How to find number of processes ? ArabOracle.com SUN Solaris 2 02-14-2006 03:29 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-05-2007
harish409 harish409 is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 7
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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0