![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compare file modification date/time to current date/time | Bill Ma | Shell Programming and Scripting | 5 | 08-27-2009 01:02 PM |
| Convert Epoch Time to Standard Date and Time & Vice Versa | DrivesMeCrazy | Shell Programming and Scripting | 5 | 02-07-2009 01:40 AM |
| problem with displaying date and adding time | FuncMx | Shell Programming and Scripting | 1 | 10-10-2008 01:06 AM |
| Processing a log file based on date/time input and the date/time on the log file | primp | Shell Programming and Scripting | 4 | 03-16-2008 11:23 AM |
| problem deleting date-time stamped file in a directory | dharmesht | High Level Programming | 1 | 05-13-2004 10:31 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Date time problem
Hi Guys,
I have a file a.txt Start Date/Time End Date/Time from Prob_Dura. ----------------- ----------------- ----- ------ 20090525 23:58:59 20090526 00:00:00 machine1 000051 20090525 23:58:09 20090526 00:00:11 machine2 000150 The perl or shell script can: 1. remove first two lins. 2. remove column "from". 3. calculate how many seconds between End and Start Date/Time. 4. calculate how many seconds for the Prob_Dura, now the format is "hh/mm/ss". The output should be: 61 51 122 110 I read the thread here, and know awk, sed can do, but when trying on my file, then still cannot figure out... --- ![]() Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|