Comments on: Timestamps for Log Fileshttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/
UNIX / Linux Shell Hints and Tips (a http://steve-parker.org/sh/sh.shtml subproject)Tue, 28 Jul 2015 17:34:35 +0000hourly1http://wordpress.com/By: stevehttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-8207
Sat, 20 Dec 2014 14:56:28 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-8207Not easily, no. I think perl has some ability to do it?
]]>By: shraveehttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-8205
Sat, 20 Dec 2014 11:44:43 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-8205I would like to have the alternative of date -d in AIX so that I can get the dates for the exact days i require from a log file.

do we have any such alternative.

]]>By: linux shell date string « Lost Ferryhttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5535
Fri, 18 Nov 2011 15:09:56 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5535[…] shell date string from: [1] […]
]]>By: 2010 in review « *nix Shellhttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5378
Sun, 02 Jan 2011 12:12:53 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5378[…] Timestamps for Log Files March 20074 comments 3 […]
]]>By: Christopher Craig » Links for the Week Ending March 09, 2008https://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5246
Wed, 11 Mar 2009 18:23:02 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-5246[…] Timestamps for Log Files « *nix Shell […]
]]>By: unixshellhttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-40
Fri, 16 Mar 2007 20:40:36 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-40It should be simple, but it’s not. I made the mistake a few years ago, of writing a shell script which used GNU’s ‘%s’ switch… I didn’t think to test it on Solaris, but the person I’d written the script for was running Solaris, which has same (UNIX) syntax as AIX. The workaround I used was to write a very small C program, like this:

]]>By: HappyDhttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-39
Fri, 16 Mar 2007 19:39:09 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-39Great tutorial, now I have a special twist and question for you. I am on an AIX host which for whatever reason IBM decided not to use GNU date. I have two existing dates already pulled from a log file and I would like to get the time between them. Generally I would use the same method you do only like this: $date -d “Fri Mar 16 12:06:03 MST 2007″ +%s, but an input option does not exist on AIX’s date command to use another date besides sysdate :( Is there any other way that you know of to take an existing date string and convert it into seconds from the unix epoch? I’ve thought about doing it in temp tables in Oracle, but that’s an overly taxing way to handle what should be a quick timestamp calculation…
]]>By: End Lands » Timestamps for Log Fileshttps://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-36
Sun, 11 Mar 2007 01:06:23 +0000http://nixshell.wordpress.com/2007/03/11/timestamps-for-log-files/#comment-36[…] post by unixshell and software by Elliott Back […]
]]>