[SunHELP] script challenge

Naser Ali sunhelp at sunhelp.org
Wed Feb 21 15:38:51 CST 2001


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C09C4E.AE2EAAD0
Content-Type: text/plain;
	charset="iso-8859-1"

Gurus,

I have an input file which has the following data in it,

############ 20010216_200000 ###########
220
190
180
190
210
180
190
190
190
180
The Average time for this ping is: 192
########################################


############ 20010216_203000 ###########
 The listner is down at this time
########################################

What I would like to do is associate the "Average" time with the collection
time and put it in a seperate file ignoring the rest, in the following
format,
2001::02::16::192

I hope I am clear on this question.
Any help or suggestion will be greatly appreciated.
TIA




------_=_NextPart_001_01C09C4E.AE2EAAD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>script challenge</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans =
MS">Gurus,</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">I have an =
input file which has the following data in it,</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">############ =
20010216_200000 ###########</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">220</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">190</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">180</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">190</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">210</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">180</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">190</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">190</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">190</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">180</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">The Average =
time for this ping is: 192</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans =
MS">########################################</FONT>
</P>
<BR>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">############ =
20010216_203000 ###########</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS"> The =
listner is down at this time</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans =
MS">########################################</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">What I would =
like to do is associate the "Average" time with the =
collection time and put it in a seperate file ignoring the rest, in the =
following format,</FONT></P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans =
MS">2001::02::16::192</FONT>
</P>

<P><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">I hope I am =
clear on this question.</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">Any help or =
suggestion will be greatly appreciated.</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Comic Sans MS">TIA</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C09C4E.AE2EAAD0--



More information about the SunHELP mailing list