I hate to point someone away from perl, but this is pretty much the problem domain that fgrep was designed for. Try man fgrep at the command line.
Basically you pass fgrep a file containing text to match (ie, the comments) and then have it search the other file(s) (ie, the code).
It looks like you'll want to do something like
grep -nf comments.txt sourcecode.c
In reply to Re: Comparing 2 files!!
by roju
in thread Comparing 2 files!!
by nofernandes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |