Visit the LQ Articles and Editorials section
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-24-2004, 07:20 AM   #1
Registered: May 2003
Posts: 256

Rep: Reputation: 30
Question Code Count

I need some helping writing a small script to count the code lines in a TCL script.

Heres the algorithm...

Ignore blank lines.
Ignore lines starting with #
count all other lines.

I have grep, awk, cut, etc. to my disposal.

Please advise.

moved to the Programming forum

Last edited by mcleodnine; 04-24-2004 at 09:29 AM.
Old 04-24-2004, 01:56 PM   #2
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
man nl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
small syntax problem with C code (implemented in Code Composer Studio) illiniguy3043 Programming 6 01-07-2008 02:14 AM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 01:37 AM
How to count how many lines of code my project is? The_Nerd Programming 4 08-30-2004 08:26 PM
Open Firmware code for booting OS from SATA : sample code available somewhere ? drsparikh Linux - Hardware 0 03-12-2004 11:16 AM
Should posts in general count on your post count? Joey.Dale General 16 01-27-2004 01:31 AM

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration