Thread: Getting loc
View Single Post
  #4 (permalink)  
Old 06-07-2008, 09:00 AM
Benny Nielsen
Tablet PC Guest
 
Posts: n/a
Re: Getting loc

Aaron Gray wrote:

> Hi,
>
> I have asked this question before but cannot find the thread on Google
> Groups.
>
> Basicaly I want a line of shell code that counts the number of non blank
> lines of code in a file, directory or directory tree.
>
> Many thanks in advance,
>
> Aaron


cat file(s) | grep -v '^$' | wc -l
Reply With Quote

 
Old 06-07-2008, 09:00 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.