The UNIX and Linux Forums  

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




Thread: Grep with count
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-16-2007
t4st33@mac.com t4st33@mac.com is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 8
Grep with count

I need to count the number of instances of a dir in a set of dir with the same suffix .txt (one dir and all recursive directories).

<Main Dir>
<sub_dir1>
<sub_dir2>
<sub_dir3>
<sub_dir4>

and count the number of instances of a type of file, ie/ .txt files