get quote enclosed field in a line

John Machin sjmachin at lexicon.net
Thu Apr 17 19:59:20 EDT 2008


Martin P. Hellwig wrote:
> 
> Something like:
> # cut -d '"' -f 6 < httpd-access.log

In Python: line.split('"')[5]




More information about the Python-list mailing list