<?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 awk help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484645#M18623</link>
    <description>Hi&lt;BR /&gt;How do "export" variables in a script from within awk to "outside" awk&lt;BR /&gt;&lt;BR /&gt;cat /tmp/file | awk '{&lt;BR /&gt;if($0 ~ "Fred")&lt;BR /&gt;{&lt;BR /&gt;F1=$1;&lt;BR /&gt;F2=$2;&lt;BR /&gt;}&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;ie I want to use F1/F2 with some HP commands like lvdisplay ..&lt;BR /&gt;&lt;BR /&gt;Thanks as always&lt;BR /&gt;&lt;BR /&gt;Keith</description>
    <pubDate>Fri, 19 Jan 2001 15:13:57 GMT</pubDate>
    <dc:creator>Keith Floyd</dc:creator>
    <dc:date>2001-01-19T15:13:57Z</dc:date>
    <item>
      <title>awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484645#M18623</link>
      <description>Hi&lt;BR /&gt;How do "export" variables in a script from within awk to "outside" awk&lt;BR /&gt;&lt;BR /&gt;cat /tmp/file | awk '{&lt;BR /&gt;if($0 ~ "Fred")&lt;BR /&gt;{&lt;BR /&gt;F1=$1;&lt;BR /&gt;F2=$2;&lt;BR /&gt;}&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;ie I want to use F1/F2 with some HP commands like lvdisplay ..&lt;BR /&gt;&lt;BR /&gt;Thanks as always&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Fri, 19 Jan 2001 15:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484645#M18623</guid>
      <dc:creator>Keith Floyd</dc:creator>
      <dc:date>2001-01-19T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484646#M18624</link>
      <description>Keith,&lt;BR /&gt;&lt;BR /&gt;Try the following;&lt;BR /&gt;&lt;BR /&gt;for LV in $(awk ' $0 ~ "Fred" {print $1 $2}' /tmp/file)&lt;BR /&gt;do&lt;BR /&gt;        lvdisplay $LV&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Greetz, Danny.</description>
      <pubDate>Fri, 19 Jan 2001 15:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484646#M18624</guid>
      <dc:creator>Danny Engelbarts</dc:creator>
      <dc:date>2001-01-19T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484647#M18625</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just another version:&lt;BR /&gt;&lt;BR /&gt;set -- $(awk '/Fred/{print $1,$2}' /tmp/file)&lt;BR /&gt;F1=$1&lt;BR /&gt;F2=$2&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jan 2001 15:50:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2484647#M18625</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2001-01-19T15:50:59Z</dc:date>
    </item>
  </channel>
</rss>

