get quote enclosed field in a line

Skye Shaw!@#$ skye.shaw at gmail.com
Fri Apr 18 02:35:45 EDT 2008


> xah... at gmail.com wrote:
> > is there a simple way in perl, python, or awk/shell/pipe, that gets
> > the user agent field in a apache log?

> Something like:
> # cut -d '"' -f 6 < httpd-access.log
> ?
> --
> mph

Doesn't it feel like autosplit mode never gets any run time?

perl -laF'"' -ne'print $F[5]' access_log




More information about the Python-list mailing list