Prem Kumar Abisha

Thursday, 30 April 2015

Squid Access log with Time format

perl -pe 's/\d+/localtime($&)/e' access.log  > test.log

cat test.log | grep 172.20.10.50 > test3.log

cat test3.log | grep -ir "Apr 30" > test5.log


Time change

date --set="2010-04-06 10:25 PM"
Posted by Prem Kumar at 12:25 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Prem Archive

  • ►  2019 (1)
    • ►  March (1)
  • ►  2017 (2)
    • ►  June (2)
  • ►  2016 (3)
    • ►  September (1)
    • ►  May (1)
    • ►  April (1)
  • ▼  2015 (2)
    • ►  November (1)
    • ▼  April (1)
      • Squid Access log with Time format
  • ►  2014 (18)
    • ►  August (1)
    • ►  July (2)
    • ►  April (5)
    • ►  March (8)
    • ►  January (2)
  • ►  2013 (18)
    • ►  December (8)
    • ►  October (1)
    • ►  September (3)
    • ►  July (6)

About Me

Prem Kumar
View my complete profile
Simple theme. Powered by Blogger.