The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-27-2008
anaconga anaconga is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 6
add seconds to: date"|"time"|"HHMMSS

Hy all,

i have a shell that invokes a AWK.
In this AWK i want invoke a function that receives 3 parameters:
1. date: 20080831
2. time: 235901
4. duration: 00023

that function receive this 3 parameters and sum to this value two more seconds:

2008083123590100025

remember that in case that i have 23h 59m and 59s, the additional 2 seconds chood change the time to the next day...

the output of the function is this value... that i need to get him in my AWK...

how can i do this...??? can anyone help me?

thanks

Last edited by anaconga; 08-27-2008 at 01:39 PM.. Reason: additional information