reading specific lines of a file
John Machin
sjmachin at lexicon.net
Sun Jul 16 04:54:50 EDT 2006
On 16/07/2006 5:16 PM, 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
aarrbejaysus #1: You *don't* type the '%', you *do* need to specify an
input file somehow.
>> than it is to write the python one-liner.
>
> 'sed' is not recognized as an internal or external command,
> operable program or batch file.
aarrbejaysus #2: Download the installer from
http://gnuwin32.sourceforge.net/packages/sed.htm
More information about the Python-list
mailing list