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"

No comments:

Post a Comment