If that's the case I think what you want is:
find . -name "*.c" -exec perl -ne 's/\d+$//; print' {} \;
which strips any numbers from the end of the lines and prints them all.
In reply to Re: regular expression
by pileswasp
in thread Matching lines in a file that end in numbers (was: regular expression)
by ashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |