Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-15-2017, 12:55 AM   #1
LQ Newbie
Registered: Nov 2017
Posts: 4

Rep: Reputation: Disabled
Calculate time difference between two lines

i grep time stamp in a file as given below

now i need to calculate time difference

file data:


please help
Old 12-15-2017, 01:30 AM   #2
Registered: Jan 2017
Posts: 666

Rep: Reputation: 288Reputation: 288Reputation: 288
Another cool question!!! I'm a GooAddict; this: linux calculate time difference
finds tons, like this:

Forum replys will never beat the speed of DDGoo!!!

There's also some, if you click on "Similar posts" (when you post new Thread), and at bottom of pages!!!

Last edited by !!!; 12-15-2017 at 01:33 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate time difference without 'date -d` in Solaris boby.kumar Linux - Newbie 11 08-03-2017 01:38 AM
[SOLVED] How to Calculate Time Difference? santosh0782 Linux - Newbie 9 02-22-2014 09:57 PM
How to get Kernel space time and compare to userspace to calculate difference? sindhu4sind Programming 1 06-05-2012 01:09 PM
how to calculate time difference in milliseconds in C/C++ waqasdaar Programming 19 03-17-2009 05:02 PM
calculate time difference between 2 formatted timestamps nickleus Linux - General 3 05-12-2006 11:08 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration