The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 06-18-2009
achenle achenle is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 76
Quote:
Originally Posted by cyperfrog View Post
Hi,

How do I get the total number of lines because when I try this command it just lists them endlessly where I only want one number?

Cheers
Code:
wc -l `find /dir/name -type f`
Note that those are backticks, and also be aware that if there are too many files you can exceed your shell's argument limitations.