Re: Inserting Line Number

2003-11-09 Thread James Edward Gray II
On Nov 9, 2003, at 3:56 PM, Raghu Murthy wrote: I would like to insert line numbers for all the files in a directory. So if a directory contains files like foo.c, foo.c1, foo.c2, foo.c3, foo.c4, I am trying to see and choose one of the numbers to process it. 1. foo.c1 2. foo.c2 3. foo.c3 4. foo

Inserting Line Number

2003-11-09 Thread Raghu Murthy
I would like to insert line numbers for all the files in a directory. So if a directory contains files like foo.c, foo.c1, foo.c2, foo.c3, foo.c4, I am trying to see and choose one of the numbers to process it. 1. foo.c1 2. foo.c2 3. foo.c3 4. foo.c4 Can I use __LINE__ or $. to do that or am I