Find the answer to your Linux question:
Results 1 to 3 of 3
I'm using this command to get the lines of code from the server directory. find . -type f | xargs wc -l >loc.csv can any one tell me how to ...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Location
    Pune
    Posts
    2

    Question Calculating LOC in directory

    I'm using this command to get the lines of code from the server directory.
    find . -type f | xargs wc -l >loc.csv
    can any one tell me how to get the results in two columns.
    one containing only the Lines of Code and another the file name.
    If you need any details please inform me.

    Thanks,
    KP...

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    LOC from a directory? Huh? Do you mean the number of files in a directory tree? Or the number of lines in the files in a directory tree?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Location
    Pune
    Posts
    2
    it's Lines of Code buddy.
    I'm getting LOC.
    But i need it in two columns display.
    I'm using this command to get the lines of code from the server directory.
    find . -type f | xargs wc -l >loc.csv
    can any one tell me how to get the results in two columns.
    one containing only the Lines of Code and another the file name.
    If you need any details please inform me.

Posting Permissions

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