reading specific lines of a file

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Sun Jul 16 04:31:45 EDT 2006


In message <mailman.8222.1153034192.27775.python-list at python.org>, Fredrik
Lundh wrote:

> Bill Pursell wrote:
> 
>> Some might argue that this is not really doing
>> it in Python.  In fact, I would argue that!  But if
>> you're at a command prompt and you want to
>> see line 7358, it's much easier to type
>> % sed -n 7358p
>> than it is to write the python one-liner.
> 
> 'sed' is not recognized as an internal or external command,
> operable program or batch file.

You're not using Windows, are you?



More information about the Python-list mailing list