[OT] Looking for a Python Program/Tool That Will Add Line Numbers to a txt File

Steve Holden steve at holdenweb.com
Fri Feb 15 14:40:14 EST 2008


I'll see your IBM 650 and raise you a Univac 418 with a FastRand drum.

regards
  Steve

W. Watson wrote:
> Good grief! You go a long way back. Want to try for an IBM 650 with a drum 
> memory?
> 
> Gabriel Genellina wrote:
>> En Thu, 14 Feb 2008 04:54:56 -0200, W. Watson <wolf_tracks at invalid.com> 
>> escribió:
>>
>>> 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.
>> This command should suffice - but you must first find a working CP/M 
>> system to use it:
>>
>> C>PIP [N] NEW.PY=OLD.PY
>>
>> (Sorry - just a a nostalgic flash!)
>>
> 


-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list