The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
need help for shell programming thungmail Shell Programming and Scripting 3 04-02-2008 04:55 PM
shell programming nivas Shell Programming and Scripting 8 02-11-2008 12:06 PM
Shell programming nivas Shell Programming and Scripting 5 01-31-2008 03:07 AM
Shell Programming DonOmar Shell Programming and Scripting 1 04-27-2006 05:07 AM
shell programming Neha Agarwal Shell Programming and Scripting 2 09-07-2005 03:23 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-12-2009
julienp julienp is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 3
Question Needs help on shell programming

Hi guys,

I need some help to create a script or command I do not have much experience in shell programming


I have a file with the lines below on 10000 lines:

12.06.09/14:20:13 4 sms/s
12.06.09/14:20:16 4 sms/s
12.06.09/14:20:17 3 sms/s
12.06.09/14:20:18 3 sms/s
12.06.09/14:20:25 5 sms/s
12.06.09/14:20:26 6 sms/s
12.06.09/14:20:29 2 sms/s
12.06.09/14:20:32 8 sms/s
12.06.09/14:20:33 4 sms/s
12.06.09/14:20:34 2 sms/s
12.06.09/14:20:35 3 sms/s


As you can see, I do not have a line for all seconds which make it really difficult to create graph.
So I try to create a line like 12.06.09/14:20:16 0 sms/s for the empty seconds.

For example :

12.06.09/14:20:13 4 sms/s
12.06.09/14:20:14 0
12.06.09/14:20:15 0
12.06.09/14:20:16 4 sms/s
12.06.09/14:20:17 3 sms/s
12.06.09/14:20:18 3 sms/s
12.06.09/14:20:19 0
12.06.09/14:20:20 0
12.06.09/14:20:21 0
12.06.09/14:20:22 0
12.06.09/14:20:23 0
12.06.09/14:20:24 0
12.06.09/14:20:25 5 sms/s
12.06.09/14:20:26 6 sms/s



That sounds easy but I can't get it to work and I feel like I'm not doing it the good way.

Does anybody knows how to make something like this ?


Thanks in advance for your help.
Julien
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:17 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0