Record seperator

greymaus greymausg at mail.com
Sat Aug 27 12:59:52 EDT 2011


On 2011-08-26, D'Arcy J.M. Cain <darcy at druid.net> wrote:
> On 26 Aug 2011 18:39:07 GMT
> greymaus <greymausg at mail.com> wrote:
>> 
>> Is there an equivelent for the AWK RS in Python?
>> 
>> 
>> as in RS='\n\n'
>> will seperate a file at two blank line intervals
>
> open("file.txt").read().split("\n\n")
>


Ta!.. bit awkard. :))))))


-- 
maus
 .
  .
...   NO CARRIER



More information about the Python-list mailing list