<?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: script to read values from a line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244557#M174263</link>
    <description>Works like a charm, Curt.&lt;BR /&gt;Thanks so much!</description>
    <pubDate>Fri, 09 Apr 2004 13:20:13 GMT</pubDate>
    <dc:creator>Theresa Patrie</dc:creator>
    <dc:date>2004-04-09T13:20:13Z</dc:date>
    <item>
      <title>script to read values from a line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244555#M174261</link>
      <description>Hi,&lt;BR /&gt;I have a netlist file that looks like this...&lt;BR /&gt;&lt;BR /&gt;NET '5V' U1-2 U2-2 U5-2&lt;BR /&gt;NET 'GND' U4-3 U1-3 U2-3 U5-5&lt;BR /&gt;...&lt;BR /&gt;I need to read in each value and re-format so that I see...&lt;BR /&gt;U1-2 5V&lt;BR /&gt;U1-3 GND&lt;BR /&gt;U2-2 5V&lt;BR /&gt;U2-3 GND&lt;BR /&gt;U4-3 GND&lt;BR /&gt;U5-5 GND&lt;BR /&gt;&lt;BR /&gt;Problem is that I do not know how many entries there will be after the signal name...could be 1 or could be 20.  If I knew how many entries, it would be a no-brainer with awk.  There must be a simple way to tell how many entries on a line...I am drawing a blank.  Any help would be greatly appreciated!&lt;BR /&gt;Thanks,&lt;BR /&gt;Theresa&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Apr 2004 11:38:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244555#M174261</guid>
      <dc:creator>Theresa Patrie</dc:creator>
      <dc:date>2004-04-09T11:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: script to read values from a line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244556#M174262</link>
      <description>awk '{&lt;BR /&gt;sig = $2;&lt;BR /&gt;for ( i=3; i &amp;lt;= NF; i++ ) {&lt;BR /&gt;printf("%s %s\n",$i,sig);&lt;BR /&gt;}}' yourfile | sort&lt;BR /&gt;&lt;BR /&gt;i'll leave it up to you to take care of the single quotes.</description>
      <pubDate>Fri, 09 Apr 2004 11:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244556#M174262</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2004-04-09T11:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: script to read values from a line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244557#M174263</link>
      <description>Works like a charm, Curt.&lt;BR /&gt;Thanks so much!</description>
      <pubDate>Fri, 09 Apr 2004 13:20:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-read-values-from-a-line/m-p/3244557#M174263</guid>
      <dc:creator>Theresa Patrie</dc:creator>
      <dc:date>2004-04-09T13:20:13Z</dc:date>
    </item>
  </channel>
</rss>

