anoopsaxena76 has asked for the wisdom of the Perl Monks concerning the following question:
If the code enhancement is only one line, the above comment tag succeeds the code in the same line, as shown below./* LM-2006-01 */ code modification spawning more than 1 line. /* LM-2006-01 */
I want to count the total number of lines that I have modified across the files. Also I do not want to count the comment lines, C style comments, embedded inside the code modifications and I do not want to count lines if it has only "{" or "}". What is the best tool for it? Perl, sed, awk? If it is Perl, can someone just give me hints as to what keywords should I look for in Perl tutorials to get started. If any other tool is well suited, I would really appreciate it if I can be redirected to a proper forum or if I can be given some hints. I don't have the option of using Python. Thanks a lot. Anoop.int my_var; /* LM-2006-01 */
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Best tool for my requirements?
by hesco (Deacon) on May 25, 2006 at 07:34 UTC | |
|
Re: Best tool for my requirements?
by Polonius (Friar) on May 25, 2006 at 07:25 UTC | |
|
Re: Best tool for my requirements?
by TedPride (Priest) on May 25, 2006 at 08:22 UTC | |
|
Re: Best tool for my requirements?
by pajout (Curate) on May 25, 2006 at 12:34 UTC |