<?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: Invoking shell commands from AWK in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137043#M800103</link>
    <description>Thats cool.&lt;BR /&gt;&lt;BR /&gt;Thanks Tomek</description>
    <pubDate>Fri, 05 Dec 2003 05:50:06 GMT</pubDate>
    <dc:creator>Deepak BS</dc:creator>
    <dc:date>2003-12-05T05:50:06Z</dc:date>
    <item>
      <title>Invoking shell commands from AWK</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137041#M800101</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a simple awk script which will process a file and print out some lines. Now, for each of these lines I want to invoke a command, say "sed". Is there a way for doing this in awk?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Deepak</description>
      <pubDate>Fri, 05 Dec 2003 05:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137041#M800101</guid>
      <dc:creator>Deepak BS</dc:creator>
      <dc:date>2003-12-05T05:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking shell commands from AWK</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137042#M800102</link>
      <description>From man awk:&lt;BR /&gt;system(cmd)       Executes cmd and returns its exit status&lt;BR /&gt;&lt;BR /&gt;-Tomek</description>
      <pubDate>Fri, 05 Dec 2003 05:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137042#M800102</guid>
      <dc:creator>Tomek Gryszkiewicz</dc:creator>
      <dc:date>2003-12-05T05:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking shell commands from AWK</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137043#M800103</link>
      <description>Thats cool.&lt;BR /&gt;&lt;BR /&gt;Thanks Tomek</description>
      <pubDate>Fri, 05 Dec 2003 05:50:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137043#M800103</guid>
      <dc:creator>Deepak BS</dc:creator>
      <dc:date>2003-12-05T05:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking shell commands from AWK</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137044#M800104</link>
      <description>Here's a noddy example:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;awk '$1 == "here" { system ("echo " S0 " | sed -e s/good/better/" ) }' &amp;lt;&amp;lt; {{&lt;BR /&gt;no good text&lt;BR /&gt;here good text&lt;BR /&gt;there good text&lt;BR /&gt;{{&lt;BR /&gt;&lt;BR /&gt;(produces "here better text")&lt;BR /&gt;&lt;BR /&gt;Alternatively:&lt;BR /&gt;&lt;BR /&gt;a) pipe the output from awk into sed, which would avoid awk runnng sed on each match&lt;BR /&gt;b) do the text selection and manipulation in PERL.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Dec 2003 05:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/invoking-shell-commands-from-awk/m-p/3137044#M800104</guid>
      <dc:creator>Alan Turner</dc:creator>
      <dc:date>2003-12-05T05:50:28Z</dc:date>
    </item>
  </channel>
</rss>

