Solaris Linux Hp-ux AIX

A faster, easier and secure world.....

Thursday, July 14, 2011

timeconvertion: unix time to normal time stamp.

This is a simple perl script to convert unix time to normal time stamp. Helpful in squid log etc...

$cat timeconvert.pl
#! /usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;

$./timeconvert /var/log/squid/access.log.old
Posted by Cinil Kumar at 10:59 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

UA search

  • ►  2023 (1)
    • ►  February (1)
  • ►  2022 (2)
    • ►  March (1)
    • ►  February (1)
  • ►  2020 (6)
    • ►  September (1)
    • ►  August (2)
    • ►  July (3)
  • ►  2018 (1)
    • ►  August (1)
  • ►  2017 (1)
    • ►  March (1)
  • ►  2016 (2)
    • ►  September (1)
    • ►  March (1)
  • ►  2015 (1)
    • ►  January (1)
  • ►  2014 (2)
    • ►  October (1)
    • ►  September (1)
  • ►  2012 (4)
    • ►  October (1)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
  • ▼  2011 (3)
    • ▼  July (1)
      • timeconvertion: unix time to normal time stamp.
    • ►  March (1)
    • ►  February (1)
  • ►  2010 (8)
    • ►  September (2)
    • ►  July (6)
  • ►  2009 (15)
    • ►  August (2)
    • ►  July (8)
    • ►  June (5)
  • HOME
  • About UnixAdmin
  • Links
Copyright © 1994 - 2010. Simple theme. Theme images by gaffera. Powered by Blogger.