LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Counting SLOC of multiple files (https://www.linuxquestions.org/questions/linux-newbie-8/counting-sloc-of-multiple-files-92060/)

uraja 09-12-2003 01:14 PM

Counting SLOC of multiple files
 
I am using "wc -l" command to count SLOC. How can I use the command to run on all the files in my directory without having to specify the name of each file seperatly

jailbait 09-12-2003 07:12 PM

Assuming that the directory you want is /home/user/example then some variation of the following command should do what you want:

find /home/user/example -iname "*" -exec wc {} -l \;


All times are GMT -5. The time now is 04:14 PM.