Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Location
    India
    Posts
    114

    Unanswered: Counting all lines

    From Root directory , I want to count all the lines of all the files in all directries. I want the final sum of lines.

    It will be good if i get all the files + lines in files. but the sum at end is must.

    Kindly help

  2. #2
    Join Date
    Apr 2004
    Location
    Boston, MA
    Posts
    325
    find / -type f | xargs wc -l
    vlad
    +-----------------------+
    | #include <disclaimer.h> |
    +-----------------------+

  3. #3
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    138
    Hi varun,
    what do you realy want to do with this counting. What´s about executable files. There is no line to count. I can not see the reason for that. Please give more informations.
    Greetings from germany
    Peter F.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •