Looking for a Python Program/Tool That Will Add Line Numbers to a txt File
Michael Wronna
mike at gmx.net
Mon Feb 18 05:07:01 EST 2008
On Thu, 14 Feb 2008, W. Watson wrote:
> See Subject. It's a simple txt file, each line is a Python stmt, but I need
> up to four digits added to each line with a space between the number field
> and the text. Perhaps someone has already done this or there's a source on
> the web for it. I'm not yet into files with Python. A sudden need has burst
> upon me. I'm using Win XP.
> --
> Wayne Watson (Nevada City, CA)
>
> Web Page: <speckledwithStars.net>
>
Hi Wayne, sorry for that: Change OS, and type cat -n program.py >
numbered.py
Just joking, Mike
More information about the Python-list
mailing list