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 ...
- 06-23-2010 #1Just Joined!
- Join Date
- Jun 2010
- Location
- Pune
- Posts
- 2
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...
- 06-23-2010 #2Linux Guru
- 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!
- 06-24-2010 #3Just 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.


Reply With Quote