- or download this
/* file name is endno1.c */
* should*/ int i; 10002
/*should not*/ int j;
/*should not*/ int k;
/* should*/ int m; 20002
- or download this
int i;
int j;
/* 10th line = 20 */ int k;
/*should*/ int m; 20005
- or download this
find . -name "*.c" -exec cat {} \; |perl -ne 'print $1\n" if $_ =~ /(.
+*)\d+$/'
- or download this
/*should*/ int m; 2000
/* should*/ int i; 1000
/* should*/ int m; 2000
- or download this
find . -name "*.c" -exec cat {} \; |perl -ne 'print $1\n" if $_ =~ /(.
+*)(.*?(?=\d))$/'
- or download this
/* 10th line = 2 */