airblaine has asked for the wisdom of the Perl Monks concerning the following question:
I need help with perl to renumber the lines above to look like this:N7 some text N8 some more text N9 more text N10 and more text N90 many lines of text alot of text N101 too much text text text
I have alot of these files with 100's of lines in each one. This seems like it should be simple (for someone besides me!) Thanks for in advance for any offerings on this!N1 some text N2 some more text N3 more text N4 and more text N5 many lines of text N6 alot of text N7 too much text N8 text text
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Line Renumbering
by FoxtrotUniform (Prior) on Aug 29, 2002 at 16:32 UTC | |
by thelenm (Vicar) on Aug 29, 2002 at 16:47 UTC | |
by fruiture (Curate) on Aug 29, 2002 at 16:52 UTC | |
|
Re: Line Renumbering
by cLive ;-) (Prior) on Aug 29, 2002 at 17:52 UTC | |
by spiderman (Monk) on Aug 29, 2002 at 19:10 UTC | |
by spiderman (Monk) on Aug 29, 2002 at 19:18 UTC |