<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: hpux awk /time / average in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494085#M704850</link>
    <description>Hi Rasheed,&lt;BR /&gt;&lt;BR /&gt;1) grep MSVD filename | wc -l&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;let recline=0&lt;BR /&gt;let MSVD789=0&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;if [[ $line = "###" ]] ; then&lt;BR /&gt;   let recline=0&lt;BR /&gt;else&lt;BR /&gt;   let recline+=1&lt;BR /&gt;   if (( $recline == 3 )) ; then&lt;BR /&gt;      if [[ $line = "MSVD" ]] ; then&lt;BR /&gt;         MSVDrec="TRUE"&lt;BR /&gt;      else&lt;BR /&gt;         MSVDrec=""&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;   if (( $recline == 4 )) ; then&lt;BR /&gt;      if [[ $MSVDrec = "TRUE" ]] ; then&lt;BR /&gt;         if [[ $line = "7" || $line = "8" || $line = "9" ]] ; then&lt;BR /&gt;            let MSVD789+=1&lt;BR /&gt;         fi&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;done &amp;lt; testfile&lt;BR /&gt;echo "Number of MSVD records: \c"&lt;BR /&gt;grep MSVD testfile | wc -l&lt;BR /&gt;echo "Number of MSVD 7,8&amp;amp;9 records: ${MSVD789}"&lt;BR /&gt;&lt;BR /&gt;3) That's a hard one. It could be made a lot easier if the time format was a single number (e.g. number of seconds since the start of the epoch {1 Jan 1970})&lt;BR /&gt;Let me think about it for a bit.</description>
    <pubDate>Mon, 28 Feb 2005 06:05:41 GMT</pubDate>
    <dc:creator>Gordon  Morrison</dc:creator>
    <dc:date>2005-02-28T06:05:41Z</dc:date>
    <item>
      <title>hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494084#M704849</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a huge ascii file which has thousands of below records:&lt;BR /&gt;&lt;BR /&gt;12832939&lt;BR /&gt;JSBKSM2&lt;BR /&gt;MSVD&lt;BR /&gt;7&lt;BR /&gt;5&lt;BR /&gt;2005-02-25 00:31:00.0&lt;BR /&gt;2005-02-25 00:41:00.0&lt;BR /&gt;2005-02-25 04:31:00.0&lt;BR /&gt;3&lt;BR /&gt;BAS3&lt;BR /&gt;000000504800948&lt;BR /&gt;&lt;BR /&gt;02382631&lt;BR /&gt;Request executed successfully.&lt;BR /&gt;0&lt;BR /&gt;2005-02-25 00:31:01.0&lt;BR /&gt;###&lt;BR /&gt;12832940&lt;BR /&gt;JSBKSM7&lt;BR /&gt;MSVD&lt;BR /&gt;9&lt;BR /&gt;5&lt;BR /&gt;2005-02-25 00:31:00.0&lt;BR /&gt;2005-02-25 00:42:00.0&lt;BR /&gt;2005-02-25 04:31:00.0&lt;BR /&gt;3&lt;BR /&gt;BAS3&lt;BR /&gt;000000505819382&lt;BR /&gt;&lt;BR /&gt;02137368&lt;BR /&gt;Request executed successfully.&lt;BR /&gt;0&lt;BR /&gt;2005-02-25 00:31:02.0&lt;BR /&gt;###&lt;BR /&gt;12832167&lt;BR /&gt;JSBKSM3&lt;BR /&gt;XXJK&lt;BR /&gt;7&lt;BR /&gt;5&lt;BR /&gt;2005-02-25 00:28:16.0&lt;BR /&gt;2005-02-25 00:28:26.0&lt;BR /&gt;2005-02-25 04:28:16.0&lt;BR /&gt;3&lt;BR /&gt;BAS3&lt;BR /&gt;000000503529256&lt;BR /&gt;&lt;BR /&gt;08923355&lt;BR /&gt;Request executed successfully.&lt;BR /&gt;0&lt;BR /&gt;2005-02-25 00:28:17.0&lt;BR /&gt;&lt;BR /&gt;The file starts with the first line (12832939 as in the example) which is the first column/field of the raw/record and ends with the date/time (2005-02-25 00:31:01.0 – first raw-last line in the file above). Each block or raw is separated by three hashes ###. &lt;BR /&gt;&lt;BR /&gt;I need to know &lt;BR /&gt;1. how many times the MSVD (third line) appears in the file &lt;BR /&gt;2. how many times the value 7 or 8 or 9 appears in the fourth line IF THE VALUE on on the third line (the line above) is MSVD&lt;BR /&gt;3. The lines 6 and 7 have date and time as below:&lt;BR /&gt;2005-02-25 00:31:00.0&lt;BR /&gt;2005-02-25 00:41:00.0&lt;BR /&gt;I need to substract the TIME (second column) on the 6th line from the 7th line (7-6) and make an average of the output (total result) of all the substracted result.&lt;BR /&gt;&lt;BR /&gt;I cannot use perl or gawk. I have to use the awk which comes with the hpux.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rasheed.</description>
      <pubDate>Mon, 28 Feb 2005 04:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494084#M704849</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2005-02-28T04:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494085#M704850</link>
      <description>Hi Rasheed,&lt;BR /&gt;&lt;BR /&gt;1) grep MSVD filename | wc -l&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;let recline=0&lt;BR /&gt;let MSVD789=0&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;if [[ $line = "###" ]] ; then&lt;BR /&gt;   let recline=0&lt;BR /&gt;else&lt;BR /&gt;   let recline+=1&lt;BR /&gt;   if (( $recline == 3 )) ; then&lt;BR /&gt;      if [[ $line = "MSVD" ]] ; then&lt;BR /&gt;         MSVDrec="TRUE"&lt;BR /&gt;      else&lt;BR /&gt;         MSVDrec=""&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;   if (( $recline == 4 )) ; then&lt;BR /&gt;      if [[ $MSVDrec = "TRUE" ]] ; then&lt;BR /&gt;         if [[ $line = "7" || $line = "8" || $line = "9" ]] ; then&lt;BR /&gt;            let MSVD789+=1&lt;BR /&gt;         fi&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;done &amp;lt; testfile&lt;BR /&gt;echo "Number of MSVD records: \c"&lt;BR /&gt;grep MSVD testfile | wc -l&lt;BR /&gt;echo "Number of MSVD 7,8&amp;amp;9 records: ${MSVD789}"&lt;BR /&gt;&lt;BR /&gt;3) That's a hard one. It could be made a lot easier if the time format was a single number (e.g. number of seconds since the start of the epoch {1 Jan 1970})&lt;BR /&gt;Let me think about it for a bit.</description>
      <pubDate>Mon, 28 Feb 2005 06:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494085#M704850</guid>
      <dc:creator>Gordon  Morrison</dc:creator>
      <dc:date>2005-02-28T06:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494086#M704851</link>
      <description>Checkout attached script. Should do what you want.&lt;BR /&gt;&lt;BR /&gt;Or help you on your way.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;             Elmar</description>
      <pubDate>Mon, 28 Feb 2005 06:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494086#M704851</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2005-02-28T06:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494087#M704852</link>
      <description>perl comes with HP-ux 11 and up, so why can't you use it?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 28 Feb 2005 07:30:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494087#M704852</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-28T07:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494088#M704853</link>
      <description>perls are nice, but ksh is a gem :o)&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;let recline=0&lt;BR /&gt;let MSVD789=0&lt;BR /&gt;&lt;BR /&gt;get_time()&lt;BR /&gt;{&lt;BR /&gt;time=$2&lt;BR /&gt;hours=${time%%:*}&lt;BR /&gt;tmp=${time#*:}&lt;BR /&gt;minutes=${tmp%%:*}&lt;BR /&gt;tmp=${time##*:}&lt;BR /&gt;seconds=${tmp%.*}&lt;BR /&gt;decsecs=${time##*.}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;calc_diff()&lt;BR /&gt;{&lt;BR /&gt;if (( $start_h == $end_h )) ; then&lt;BR /&gt;   let diff_h=0&lt;BR /&gt;elif (( $end_h &amp;gt; $start_h )) ; then&lt;BR /&gt;   let diff_h=${end_h}-${start_h}&lt;BR /&gt;elif (( $end_h &amp;lt; $start_h )) ; then&lt;BR /&gt;   let diff_h=${end_h}+24-${start_h}&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if (( $start_m == $end_m )) ; then&lt;BR /&gt;   let diff_m=0&lt;BR /&gt;elif (( $end_m &amp;gt; $start_m )) ; then&lt;BR /&gt;   let diff_m=${end_m}-${start_m}&lt;BR /&gt;elif (( $end_m &amp;lt; $start_m )) ; then&lt;BR /&gt;   let diff_m=${end_m}+60-${start_m}&lt;BR /&gt;   let diff_h-=1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if (( $start_s == $end_s )) ; then&lt;BR /&gt;   let diff_s=0&lt;BR /&gt;elif (( $end_s &amp;gt; $start_s )) ; then&lt;BR /&gt;   let diff_s=${end_s}-${start_s}&lt;BR /&gt;elif (( $end_s &amp;lt; $start_s )) ; then&lt;BR /&gt;   let diff_s=${end_s}+60-${start_s}&lt;BR /&gt;   let diff_m-=1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if (( $start_ds == $end_ds )) ; then&lt;BR /&gt;   let diff_ds=0&lt;BR /&gt;elif (( $end_ds &amp;gt; $start_ds )) ; then&lt;BR /&gt;   let diff_ds=${end_ds}-${start_ds}&lt;BR /&gt;elif (( $end_ds &amp;lt; $start_ds )) ; then&lt;BR /&gt;   let diff_ds=${end_ds}+10-${start_ds}&lt;BR /&gt;   let diff_s-=1&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Main&lt;BR /&gt;&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;if [[ $line = "###" ]] ; then&lt;BR /&gt;   let recline=0&lt;BR /&gt;else&lt;BR /&gt;   let recline+=1&lt;BR /&gt;   if (( $recline == 3 )) ; then&lt;BR /&gt;      if [[ $line = "MSVD" ]] ; then&lt;BR /&gt;         MSVDrec="TRUE"&lt;BR /&gt;      else&lt;BR /&gt;         MSVDrec=""&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;   if [[ $MSVDrec = "TRUE" ]] ; then&lt;BR /&gt;      if (( $recline == 4 )) ; then&lt;BR /&gt;         if [[ $line = "7" || $line = "8" || $line = "9" ]] ; then&lt;BR /&gt;            let MSVD789+=1&lt;BR /&gt;            MSVDval=$line&lt;BR /&gt;         fi&lt;BR /&gt;      fi&lt;BR /&gt;      if (( $recline == 6 )) ; then&lt;BR /&gt;         get_time ${line}&lt;BR /&gt;         let start_h=$(( hours ))&lt;BR /&gt;         let start_m=$((minutes))&lt;BR /&gt;         let start_s=$((seconds))&lt;BR /&gt;         let start_ds=$((decsecs))&lt;BR /&gt;      fi&lt;BR /&gt;      if (( $recline == 7 )) ; then&lt;BR /&gt;         get_time ${line}&lt;BR /&gt;         let end_h=$hours&lt;BR /&gt;         let end_m=$minutes&lt;BR /&gt;         let end_s=$seconds&lt;BR /&gt;         let end_ds=$decsecs&lt;BR /&gt;         calc_diff&lt;BR /&gt;         echo "MSVD value = ${MSVDval}"&lt;BR /&gt;         echo "Runtime = ${diff_h}:${diff_m}:${diff_s}.${diff_ds}"&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;done &amp;lt; testfile&lt;BR /&gt;&lt;BR /&gt;echo "Number of MSVD records: \c"&lt;BR /&gt;grep MSVD testfile | wc -l&lt;BR /&gt;echo "Number of MSVD 7,8&amp;amp;9 records: ${MSVD789}"&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Feb 2005 08:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494088#M704853</guid>
      <dc:creator>Gordon  Morrison</dc:creator>
      <dc:date>2005-02-28T08:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494089#M704854</link>
      <description>Oops! I forgot about your averages. Try this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;let recline=0&lt;BR /&gt;let MSVD789=0&lt;BR /&gt;let tot_h=0&lt;BR /&gt;let tot_m=0&lt;BR /&gt;let tot_s=0&lt;BR /&gt;let tot_ds=0&lt;BR /&gt;let numMSVD=0&lt;BR /&gt;&lt;BR /&gt;get_time()&lt;BR /&gt;{&lt;BR /&gt;time=$2&lt;BR /&gt;hours=${time%%:*}&lt;BR /&gt;tmp=${time#*:}&lt;BR /&gt;minutes=${tmp%%:*}&lt;BR /&gt;tmp=${time##*:}&lt;BR /&gt;seconds=${tmp%.*}&lt;BR /&gt;decsecs=${time##*.}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;calc_diff()&lt;BR /&gt;{&lt;BR /&gt;if (( $start_h == $end_h )) ; then&lt;BR /&gt;   let diff_h=0&lt;BR /&gt;elif (( $end_h &amp;gt; $start_h )) ; then&lt;BR /&gt;   let diff_h=${end_h}-${start_h}&lt;BR /&gt;elif (( $end_h &amp;lt; $start_h )) ; then&lt;BR /&gt;   let diff_h=${end_h}+24-${start_h}&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if (( $start_m == $end_m )) ; then&lt;BR /&gt;   let diff_m=0&lt;BR /&gt;elif (( $end_m &amp;gt; $start_m )) ; then&lt;BR /&gt;   let diff_m=${end_m}-${start_m}&lt;BR /&gt;elif (( $end_m &amp;lt; $start_m )) ; then&lt;BR /&gt;   let diff_m=${end_m}+60-${start_m}&lt;BR /&gt;   let diff_h-=1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if (( $start_s == $end_s )) ; then&lt;BR /&gt;   let diff_s=0&lt;BR /&gt;elif (( $end_s &amp;gt; $start_s )) ; then&lt;BR /&gt;   let diff_s=${end_s}-${start_s}&lt;BR /&gt;elif (( $end_s &amp;lt; $start_s )) ; then&lt;BR /&gt;   let diff_s=${end_s}+60-${start_s}&lt;BR /&gt;   let diff_m-=1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if (( $start_ds == $end_ds )) ; then&lt;BR /&gt;   let diff_ds=0&lt;BR /&gt;elif (( $end_ds &amp;gt; $start_ds )) ; then&lt;BR /&gt;   let diff_ds=${end_ds}-${start_ds}&lt;BR /&gt;elif (( $end_ds &amp;lt; $start_ds )) ; then&lt;BR /&gt;   let diff_ds=${end_ds}+10-${start_ds}&lt;BR /&gt;   let diff_s-=1&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Main&lt;BR /&gt;&lt;BR /&gt;while read line&lt;BR /&gt;do&lt;BR /&gt;if [[ $line = "###" ]] ; then&lt;BR /&gt;   let recline=0&lt;BR /&gt;else&lt;BR /&gt;   let recline+=1&lt;BR /&gt;   if (( $recline == 3 )) ; then&lt;BR /&gt;      if [[ $line = "MSVD" ]] ; then&lt;BR /&gt;         MSVDrec="TRUE"&lt;BR /&gt;      else&lt;BR /&gt;         MSVDrec=""&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;   if [[ $MSVDrec = "TRUE" ]] ; then&lt;BR /&gt;      if (( $recline == 4 )) ; then&lt;BR /&gt;         if [[ $line = "7" || $line = "8" || $line = "9" ]] ; then&lt;BR /&gt;            let MSVD789+=1&lt;BR /&gt;            MSVDval=$line&lt;BR /&gt;         fi&lt;BR /&gt;      fi&lt;BR /&gt;      if (( $recline == 6 )) ; then&lt;BR /&gt;         get_time ${line}&lt;BR /&gt;         let start_h=$(( hours ))&lt;BR /&gt;         let start_m=$((minutes))&lt;BR /&gt;         let start_s=$((seconds))&lt;BR /&gt;         let start_ds=$((decsecs))&lt;BR /&gt;      fi&lt;BR /&gt;      if (( $recline == 7 )) ; then&lt;BR /&gt;         get_time ${line}&lt;BR /&gt;         let end_h=$hours&lt;BR /&gt;         let end_m=$minutes&lt;BR /&gt;         let end_s=$seconds&lt;BR /&gt;         let end_ds=$decsecs&lt;BR /&gt;         calc_diff&lt;BR /&gt;         echo "MSVD value = ${MSVDval}"&lt;BR /&gt;         echo "Runtime = ${diff_h}:${diff_m}:${diff_s}.${diff_ds}"&lt;BR /&gt;         let tot_h+=$diff_h&lt;BR /&gt;         let tot_m+=$diff_m&lt;BR /&gt;         let tot_s+=$diff_s&lt;BR /&gt;         let tot_ds+=$diff_ds&lt;BR /&gt;         let numMSVD+=1&lt;BR /&gt;      fi&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;done &amp;lt; testfile&lt;BR /&gt;&lt;BR /&gt;let av_h=${tot_h}/${numMSVD}&lt;BR /&gt;let av_m=${tot_m}/${numMSVD}&lt;BR /&gt;let av_s=${tot_s}/${numMSVD}&lt;BR /&gt;let av_ds=${tot_ds}/${numMSVD}&lt;BR /&gt;&lt;BR /&gt;echo "Number of MSVD records: ${numMSVD}"&lt;BR /&gt;echo "Number of MSVD 7,8&amp;amp;9 records: ${MSVD789}"&lt;BR /&gt;echo "Average runtime: ${av_h}:${av_m}:${av_s}.${av_ds}"&lt;BR /&gt;&lt;BR /&gt;#####&lt;BR /&gt;# End&lt;BR /&gt;#####&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Feb 2005 11:02:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494089#M704854</guid>
      <dc:creator>Gordon  Morrison</dc:creator>
      <dc:date>2005-02-28T11:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494090#M704855</link>
      <description>With your example, &lt;BR /&gt;&lt;BR /&gt; muthu # awk 'BEGIN {RS="###";sev=x=egt=nine=t1=t2=avg=0} { if($3=="MSVD") { x=x+1; if($4==7) { sev=sev+1;} else if ($4==8){ egt=egt+1}else if ($4==9){nine=nine+1}} split($7,a,":"); t1=a[1]*60*60+a[2]*60+a[3]; split($9,b,":"); t2=b[1]*60*60+b[2]*60+b[3]; avg=avg+t2-t1;} END { print "MSVD COUNT = "x;print "Seven After MSVD = "sev;print "Eight After MSVD = "egt; print "Nine After MSVD = "nine;print "AVG : "avg" Sec" }' testfile&lt;BR /&gt;MSVD COUNT = 2&lt;BR /&gt;Seven After MSVD = 1&lt;BR /&gt;Eight After MSVD = 0&lt;BR /&gt;Nine After MSVD = 1&lt;BR /&gt;AVG : 1270 Sec&lt;BR /&gt;&lt;BR /&gt;let me know if changes needed.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Mar 2005 05:10:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494090#M704855</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-03-01T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: hpux awk /time / average</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494091#M704856</link>
      <description>Thanks to all who responded to my query. I was busy with other jobs and did not get enough time to test it.&lt;BR /&gt;&lt;BR /&gt;Gordon, you did marvellous with the shell script. I did not think before that the shell will be enough to do this.&lt;BR /&gt;&lt;BR /&gt;Elmar, you gave me good pointer with the script though the script had some bad chars and was not working for me.&lt;BR /&gt;&lt;BR /&gt;Harry, I am still not comforable well with the perl yet. Sorry for that. I am trying to improve.&lt;BR /&gt;&lt;BR /&gt;Muthu, I do not get the correct avg with the script. &lt;BR /&gt;&lt;BR /&gt;I still open the thread, if in case, someone can give some brilliant idea with the awk to get the required result.&lt;BR /&gt;Thanks&lt;BR /&gt;Rasheed.</description>
      <pubDate>Mon, 07 Mar 2005 04:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-awk-time-average/m-p/3494091#M704856</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2005-03-07T04:55:11Z</dc:date>
    </item>
  </channel>
</rss>

