Print field x in a space separated gzipped logfile
In the below case x is 2 (numbering starts from zero).
gunzip -c access.log.1.gz | perl -ne '@a=split / +/, $_; print $a[2]."\n"'
Popularity: 1% [?]
Tags: csv, log, perl
This entry was posted
on Monday, February 15th, 2010 at 12:57 pm and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.