![]() |
|
|
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 |
| Script to Extract time from log files and write to a excel | santosham | UNIX for Dummies Questions & Answers | 4 | 06-09-2008 10:30 AM |
| Script to Extract time from log files and write to a excel | santosham | UNIX for Advanced & Expert Users | 0 | 06-06-2008 02:27 PM |
| Pls Help-Script to execute Commands and write to excel file | Computer_baby | Shell Programming and Scripting | 1 | 01-08-2008 08:34 AM |
| Extract directories, users, groups & permissions to excel | MacLon | Shell Programming and Scripting | 0 | 02-15-2006 10:38 AM |
| How to read and write files one line at a time. | s_chopra | UNIX for Dummies Questions & Answers | 2 | 04-18-2001 10:39 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script to Extract time from log files and write to a excel
Can someone help me with writing a unix script for following requirement
1) I have a log file in which we have start time and end time (format: hh:mm:ss) Example: starting script on Thu Jun 5 20:50:52 Thu Jun 5 21:55:33 - Script Completed 2) I want to extract start time and end time of the script (ex: 20:50:52 and 21:55:33) from the log file and write into a excel file. 3) I need to collect these start and end times every day and write into the excel (this excel will be stored in a shared drive) and also I have around 50 logs which i need to go thru to get the start and end times. 4) Once the start and end times are extracted into excel file, I need to get the time taken for completion of the script (by substracting end time from start time) and populate the result value into another cell of the excel. For example, My ouput should look like this. Start Time End Time Time to Complete 19:41:42 20:25:18 00:43:36 Your help with this script is greatly appriciated. Thanks, S |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|