cat > /var/convert.pl
#!/usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;
Ctrl+D
. /var/convert.pl /var/squid/log/access.log |more
cat > /var/convert.pl
#!/usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;
Ctrl+D
. /var/convert.pl /var/squid/log/access.log |more
This entry was posted on 2011-05-16, 21:03 and is filed under Howto, linux. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^