There are two fields actually one is server name and the other one is Time.
Based on time, there are 8 columns and these will be updated with the flag 1 if at all if there is any server name.
[CENTER]Time
Server name
15 to 18
18 to 21
21 to 24
00 to 03
03 to 06
06 to 09
09 to 12
Server Total
23:58
xxx
1
0:22
xxx
1
4:47
xxx
1
7:34
xxx
1
8:59
xxx
1
8:45
xxx
1
9:30
xxx
1
11:06
xxx
1
8[/CENTER]
Can anyone tell me or guide at least how to prepare a script. I am new to unix.
Looking forward...
Where are there two fields?
First you said there are 2 fields, now you say there are 8 columns, yet your post, for the most part, only shows a single column.
Please format your post correctly (and forget the silly font changes), and describe exactly what should be updated.
Thanks for the reply:
Time Servername 12to15 15to18 18to21 21to24 00to03 o3to06 o6to09 09to12
------------------------------------------------------------------------------------------
23:58 xxx 1
0:22 xxx 1
4:47 xxx 1
7:34 xxx 1
8:59 xxx 1
8:45 xxx 1
9:30 xxx 1
11:06 xxx 1
----------------------------------------------------------------------------------------
Based on the time for e.g. 23:58 the flag 21 to 24 is updated with 1 and for the time 0:22, the flage 00to03 is updated with 1 and so on.
How can we achieve this using a shell script?
Hope i explained clearly, if not please give me a shout.
what i wanted to paste over here on earlier occasion was not getting pasted properly.
please see the stmt below:
Based on the time for e.g. 23:58 the flag 21 to 24 is updated with 1 and for the time 0:22, the flage 00to03 is updated with 1 and
for the time 4:47, the flag 03 to 06 is updated with 1 and for 07:34 the flag 06 to 09 is updated with 1 and so on.