<?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: Help script  parse file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137767#M317151</link>
    <description>attach the  real log &lt;BR /&gt;</description>
    <pubDate>Thu, 31 Jan 2008 20:17:30 GMT</pubDate>
    <dc:creator>Jairo Campana</dc:creator>
    <dc:date>2008-01-31T20:17:30Z</dc:date>
    <item>
      <title>Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137750#M317134</link>
      <description>Hi, I need parse file :&lt;BR /&gt;&lt;BR /&gt;in my script input a field pattern: number "node":&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;----------------------------&lt;BR /&gt;./switch&lt;BR /&gt;Input number node: 20:20:20:20&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;the script found node :20:20:20:20 and display the name  of hosts ,and  lines: &lt;BR /&gt;Type Pid    COS     PortName                NodeName                 SCR&lt;BR /&gt;    FC4s: FCP&lt;BR /&gt;    NodeSymb: [41] "QLA2460  FW:v4.00.23 DVR:v9.1.2.19 (wx64)"&lt;BR /&gt;    Port Name: 20:20:20:20&lt;BR /&gt;    Permanent Port Name: 20:20:20:20:&lt;BR /&gt;    Device type: Physical Initiator&lt;BR /&gt;    Aliases: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*********** cat log ********************&lt;BR /&gt;&lt;BR /&gt;HOS1&lt;BR /&gt; Version 5.1.0d&lt;BR /&gt;HOST1 login: user&lt;BR /&gt;Password:&lt;BR /&gt;user&amp;gt; node 20:20:20:20&lt;BR /&gt;No device found&lt;BR /&gt;user&amp;gt; Trying 10.10.10.10&lt;BR /&gt;Connected to 10.10.10.11&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HOST2&lt;BR /&gt;    Version 5.1.0d&lt;BR /&gt;HOST2 login: user&lt;BR /&gt;Password:&lt;BR /&gt;user&amp;gt; node 20:20:20:20&lt;BR /&gt;Local:&lt;BR /&gt; Type Pid    COS     PortName                NodeName                 SCR&lt;BR /&gt; N    338a00;      3;20:20:20:20:78:58;20:20:20:20; 3&lt;BR /&gt;    FC4s: FCP&lt;BR /&gt;    NodeSymb: [41] "QLA2460  FW:v4.00.23 DVR:v9.1.2.19 (wx64)"&lt;BR /&gt;    Port Name: 20:20:20:20&lt;BR /&gt;    Permanent Port Name: 20:20:20:20:&lt;BR /&gt;    Device type: Physical Initiator&lt;BR /&gt;    Aliases:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;... more lines...&lt;BR /&gt;HOSTS 3&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;**************************&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 17:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137750#M317134</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-30T17:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137751#M317135</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;first close your duplicate thread of the same topic.&lt;BR /&gt;The idea is to&lt;BR /&gt;- collect data into variables,&lt;BR /&gt;- check for your anchor data&lt;BR /&gt;- output data after a block delimiter&lt;BR /&gt;I assume 2 or more empty lines as a block delimiter&lt;BR /&gt;Without coding your request completely, this should lead you to one correct way:&lt;BR /&gt;&lt;BR /&gt;awk -v mynode=20:20:20:20 '$2 == "login:" {host=$1;next}&lt;BR /&gt;$2 == "node" {if($3==mynode) node=1;else node=0}&lt;BR /&gt;/^Type Pid / {tp=$0;getline;tpdata=$0;next}&lt;BR /&gt;# more coding&lt;BR /&gt;!NF {empty++;next}&lt;BR /&gt;empty &amp;amp;&amp;amp; NF {if (node &amp;amp;&amp;amp; empty) printf("Host %s\nnode %s\n%s\n%s\n",host,mynode,tp,tpdata)&lt;BR /&gt;empty=node=0;tp=tpdata=""}' log&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 30 Jan 2008 18:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137751#M317135</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-01-30T18:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137752#M317136</link>
      <description>&lt;!--!*#--&gt;Jairo,&lt;BR /&gt;&lt;BR /&gt;It seems to me you simplified that input and output beyond (my) recognition.&lt;BR /&gt;If the replies up to this point do not help you enough, then please consider a reply with TEXT attachment with more input, and EXACT output.&lt;BR /&gt;&lt;BR /&gt;- There are a lot of 20:20:20:20 occurences in the input. Which one is the trigger?&lt;BR /&gt;- I suspect the line "N 338a00; 3;20:20:20:20:78:58;20:20:20:20; 3" is the trigger. First or second occurance?&lt;BR /&gt;- That line is NOT in the sample output. Intentional?&lt;BR /&gt;- The words HOSTx are NOT in the output. Intentional?&lt;BR /&gt;- Does the first line to display start with 'Type' and the last with 'Aliases'?&lt;BR /&gt;- All lines in between, or just some?&lt;BR /&gt;&lt;BR /&gt;Anyway... here is a perl script which seems to do what you currently requested.&lt;BR /&gt;See how close it is to what you want!&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;&lt;BR /&gt;my $LOG = 'cat.log';&lt;BR /&gt;my $target = shift or die "Please provide a search target string";&lt;BR /&gt;my $found = 0;&lt;BR /&gt;my @lines;&lt;BR /&gt;&lt;BR /&gt;open (LOG, "&amp;lt;$LOG") or die "Could not open log file : $LOG\n$!";&lt;BR /&gt;&lt;BR /&gt;while (&lt;LOG&gt;)  {&lt;BR /&gt;   @lines = () if /^Type/;&lt;BR /&gt;   if (/^N.*;$target;/) {&lt;BR /&gt;      $found++;&lt;BR /&gt;   } else {&lt;BR /&gt;      push @lines, $_;&lt;BR /&gt;   }&lt;BR /&gt;   if ($found &amp;amp;&amp;amp; /^Alias/) {&lt;BR /&gt;      print @lines;&lt;BR /&gt;      $found = 0;&lt;BR /&gt;   }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LOG&gt;</description>
      <pubDate>Wed, 30 Jan 2008 18:36:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137752#M317136</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-01-30T18:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137753#M317137</link>
      <description>I try from promt shell , obtaing :&lt;BR /&gt;# mynode=20:20:20:20&lt;BR /&gt;&lt;BR /&gt;# awk -v mynode=20:20:20:20 '$2 == "login:" {host=$1;next} $2 == "node" {if($3==20:20:20:20) node=1;else node=0} /^Type Pid / {tp=$0;getline;tpdata=$0;next} !NF {empty++;next} empty &amp;amp;&amp;amp; NF {if (node &amp;amp;&amp;amp; empty) printf("Host %s\nnode %s\n%s\n%s\n",host,20:20:20:20,tp,tpdata) empty=node=0;tp=tpdata=""}' log&lt;BR /&gt;&lt;BR /&gt;Obtaing :&lt;BR /&gt;awk: syntax error near line 1&lt;BR /&gt;awk: bailing out near line 1&lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 18:54:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137753#M317137</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-30T18:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137754#M317138</link>
      <description>Hei van den , your script works , only not obtaing the name host name.&lt;BR /&gt;&lt;BR /&gt;the log its incomplete&lt;BR /&gt;&lt;BR /&gt;send to original log output&lt;BR /&gt;&lt;BR /&gt;address search 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;the address can be in several name of hosts&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 19:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137754#M317138</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-30T19:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137755#M317139</link>
      <description>&amp;gt;&amp;gt; Hei van den , your script works , only not obtaing the name host name.&lt;BR /&gt;&amp;gt;&amp;gt; the log its incomplete&lt;BR /&gt;&lt;BR /&gt;Which is exactly how you requested it according to the output example in the base topic. Correct?&lt;BR /&gt;&lt;BR /&gt;Anyhow, it is easier to show it. Change this:&lt;BR /&gt;&lt;BR /&gt;From:&lt;BR /&gt;   if (/^N.*;$target;/) {&lt;BR /&gt;      $found++;&lt;BR /&gt;   } else {&lt;BR /&gt;      push @lines, $_;&lt;BR /&gt;   }&lt;BR /&gt;To:&lt;BR /&gt;   $found++ if /^N.*;$target;/ &lt;BR /&gt;   push @lines, $_;&lt;BR /&gt;&lt;BR /&gt;You may also want to change that RSE to /^N.*;$target/&lt;BR /&gt;&lt;BR /&gt;By dropping the final semicolon, you can abbreviate teh node number match string.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 19:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137755#M317139</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-01-30T19:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137756#M317140</link>
      <description>&amp;gt;&amp;gt;Which is exactly how you requested it &amp;gt;&amp;gt;according to the output example in the &amp;gt;&amp;gt;base topic. Correct?&lt;BR /&gt;&lt;BR /&gt;yes its correct , see original log  attach in before post&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jan 2008 20:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137756#M317140</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-30T20:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137757#M317141</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I'm shure my awk works, when corretly formatted. When run not under HP-UX (Solris e.g.) use 'nawk' instead.&lt;BR /&gt;&lt;BR /&gt;awk -v mynode=20:20:20:20 '$2 == "login:" {host=$1;next}&lt;BR /&gt;$2 == "node" {if($3==20:20:20:20) node=1;else node=0}&lt;BR /&gt;/^Type Pid / {tp=$0;getline;tpdata=$0;next}&lt;BR /&gt;!NF {empty++;next}&lt;BR /&gt;# the printf-statement is on a single line&lt;BR /&gt;empty &amp;amp;&amp;amp; NF {if(node &amp;amp;&amp;amp; empty) printf("Host %s\nnode %s\n%s\n%s\n",host,20:20:20:20,tp,tpdata)&lt;BR /&gt;empty=node=0;tp=tpdata=""}' log&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 08:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137757#M317141</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-01-31T08:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137758#M317142</link>
      <description>the awk script  , is only one line?</description>
      <pubDate>Thu, 31 Jan 2008 11:42:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137758#M317142</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T11:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137759#M317143</link>
      <description>&amp;gt;the awk script, is only one line?&lt;BR /&gt;&lt;BR /&gt;It doesn't look like it.  It is one long string with embedded newlines quoted by ''.</description>
      <pubDate>Thu, 31 Jan 2008 11:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137759#M317143</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-01-31T11:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137760#M317144</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;my comment just notified the fact that on the ITRC page the printf-line is seen spread over two lines. If you execute the command, you should put it on only one line.&lt;BR /&gt;&lt;BR /&gt;line1:&lt;BR /&gt;awk -v mynode=20:20:20:20 '$2 == "login:" {host=$1;next}&lt;BR /&gt;line2:&lt;BR /&gt;$2 == "node" {if($3==20:20:20:20) node=1;else node=0}&lt;BR /&gt;line3:&lt;BR /&gt;/^Type Pid / {tp=$0;getline;tpdata=$0;next}&lt;BR /&gt;line4:&lt;BR /&gt;!NF {empty++;next}&lt;BR /&gt;line5:&lt;BR /&gt;empty &amp;amp;&amp;amp; NF {if(node &amp;amp;&amp;amp; empty) printf("Host %s\nnode %s\n%s\n%s\n",host,20:20:20:20,tp,tpdata)&lt;BR /&gt;line6:&lt;BR /&gt;empty=node=0;tp=tpdata=""}' log&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 31 Jan 2008 13:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137760#M317144</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-01-31T13:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137761#M317145</link>
      <description>obtaing this error:&lt;BR /&gt;run from solaris 8&lt;BR /&gt;&lt;BR /&gt;# nawk -v mynode=20:20:20:20 '$2 == "login:" {host=$1;next} $2 == "node" {if($3==mynode) node=1;else node=0} /^Type Pid / {tp=$0;getline;tpdata=$0;next} !NF {empty++;next} empty &amp;amp;&amp;amp; NF {if (node &amp;amp;&amp;amp; empty) printf("Host %s\nnode %s\n%s\n%s\n",host,mynode,tp,tpdata) empty=node=0;tp=tpdata=""}' cat.log&lt;BR /&gt;nawk: syntax error at source line 1&lt;BR /&gt; context is&lt;BR /&gt;        $2 == "login:" {host=$1;next} $2 == "node" {if($3==mynode) node=1;else node=0} /^Type Pid / {tp=$0;getline;tpdata=$0;next} !NF {empty++;next} empty &amp;amp;&amp;amp; NF {if (node &amp;amp;&amp;amp; empty) printf("Host %s\nnode %s\n%s\n%s\n",host,mynode,tp,tpdata) &amp;gt;&amp;gt;&amp;gt;  empty &amp;lt;&amp;lt;&amp;lt; =node=0;tp=tpdata=""}&lt;BR /&gt;nawk: illegal statement at source line 1&lt;BR /&gt;#&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 14:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137761#M317145</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137762#M317146</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;it seems, you insist in putting all awk statements into one line (why?).&lt;BR /&gt;If you do not want to use the line layout of my previous post, the last error message you sent could be resolved in putting a semicolon before the 'empty=...' statement:&lt;BR /&gt;&lt;BR /&gt;...,mynode,tp,tpdata); empty=node=...&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Thu, 31 Jan 2008 15:23:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137762#M317146</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-01-31T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137763#M317147</link>
      <description>good ,this works , but I try run the script with other log .&lt;BR /&gt;&lt;BR /&gt;see attacht in post before.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 19:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137763#M317147</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T19:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137764#M317148</link>
      <description>that change to execute it with log attach in before post.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 19:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137764#M317148</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137765#M317149</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm shure, you can do this by yourself.&lt;BR /&gt;You've got the idea for parsing such a file - now is the time for YOU to do the homeworks.&lt;BR /&gt;&lt;BR /&gt;Some helpful comments:&lt;BR /&gt;- change 'node' to 'nodefind'&lt;BR /&gt;- lever the condition for 'Type Pid' to be located at the beginning of a line, so that there may be some spaces before:&lt;BR /&gt;/^ *Type Pid /&lt;BR /&gt;- add more pattern-action lines to this code to  collect  all required output.&lt;BR /&gt;&lt;BR /&gt;Have fun!&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 20:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137765#M317149</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2008-01-31T20:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137766#M317150</link>
      <description>attach teh  real log.</description>
      <pubDate>Thu, 31 Jan 2008 20:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137766#M317150</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T20:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137767#M317151</link>
      <description>attach the  real log &lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 20:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137767#M317151</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T20:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137768#M317152</link>
      <description>I apply sed in file , removes all empty lines from the file , see attach&lt;BR /&gt;&lt;BR /&gt;I change node for nodefind</description>
      <pubDate>Thu, 31 Jan 2008 20:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137768#M317152</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T20:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help script  parse file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137769#M317153</link>
      <description>I obtaing , without name the hosts  and display all hosts &lt;BR /&gt;&lt;BR /&gt;backup2# ./test1&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt; Type Pid    COS     PortName                NodeName                 SCR&lt;BR /&gt; N    338a00;      3;21:00:00:1b:32:06:78:58;20:00:00:1b:32:06:78:58; 3&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;    Type Pid    COS     PortName                NodeName&lt;BR /&gt;    N    338a00;      3;21:00:00:1b:32:06:78:58;20:00:00:1b:32:06:78:58;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Host login:&lt;BR /&gt;node 21:00:00:1b:32:06:78:58&lt;BR /&gt; Type Pid    COS     PortName                NodeName                 SCR&lt;BR /&gt; N    338a00;      3;21:00:00:1b:32:06:78:58;20:00:00:1b:32:06:78:58; 3&lt;BR /&gt;backup2#&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2008 20:26:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-parse-file/m-p/4137769#M317153</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2008-01-31T20:26:06Z</dc:date>
    </item>
  </channel>
</rss>

