<?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: Can awk print to the standard error ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881140#M719475</link>
    <description>Hi,&lt;BR /&gt;Perhaps not very elegant but berhaps you can try it.&lt;BR /&gt;&lt;BR /&gt;awk '{print | "cat  1&amp;gt;&amp;amp;2" }</description>
    <pubDate>Tue, 14 Jan 2003 09:33:24 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2003-01-14T09:33:24Z</dc:date>
    <item>
      <title>Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881135#M719470</link>
      <description>How can awk print to the standard error instead of standard output ?</description>
      <pubDate>Tue, 14 Jan 2003 08:46:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881135#M719470</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-01-14T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881136#M719471</link>
      <description>awk {print} 1&amp;gt;&amp;amp;2</description>
      <pubDate>Tue, 14 Jan 2003 08:58:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881136#M719471</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-01-14T08:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881137#M719472</link>
      <description>Are you tried:&lt;BR /&gt;awk '...' file 2&amp;gt;file2 1&amp;gt;&amp;amp;2&lt;BR /&gt;The standard error to a file and the redirection of the standard output to the same file.&lt;BR /&gt;But... what is the sense?&lt;BR /&gt;awk '...' file 1&amp;gt;file2 2&amp;gt;&amp;amp;1&lt;BR /&gt;obtains the same output.&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 14 Jan 2003 08:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881137#M719472</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-14T08:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881138#M719473</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use file descriptor 0 for standard input, 1 for standard output, and 2 for standard error:&lt;BR /&gt;&lt;BR /&gt;# awk {print} 1&amp;gt;&amp;amp;2&lt;BR /&gt;&lt;BR /&gt;Regards ...&lt;BR /&gt;Armin</description>
      <pubDate>Tue, 14 Jan 2003 09:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881138#M719473</guid>
      <dc:creator>Armin Feller</dc:creator>
      <dc:date>2003-01-14T09:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881139#M719474</link>
      <description>Arturo, please, I don't want to collect the "awk" error messages... I want my awk program prints in standard error. For example:&lt;BR /&gt;&lt;BR /&gt;awk ' { if (n==0) print "ERROR" }'&lt;BR /&gt;&lt;BR /&gt;I want ERROR be printed in standard error, not in standard output.&lt;BR /&gt;&lt;BR /&gt;Leif, your suggestion will print on standard error ANY message... I don't want that. I want the error messages be printed in standard error but I also want normal output be printed in standard output.</description>
      <pubDate>Tue, 14 Jan 2003 09:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881139#M719474</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-01-14T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881140#M719475</link>
      <description>Hi,&lt;BR /&gt;Perhaps not very elegant but berhaps you can try it.&lt;BR /&gt;&lt;BR /&gt;awk '{print | "cat  1&amp;gt;&amp;amp;2" }</description>
      <pubDate>Tue, 14 Jan 2003 09:33:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881140#M719475</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-01-14T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881141#M719476</link>
      <description>Oops!&lt;BR /&gt;I'm surprised, this is your answer? In your first post you're saying this?&lt;BR /&gt;My recomendation is:&lt;BR /&gt;awk '...' file &amp;gt;file2&lt;BR /&gt;grep 'ERROR' file2 &amp;gt;file_error&lt;BR /&gt;The selection of the standard output that you want isn't possible.&lt;BR /&gt;By the way, is very curious that the all replies beeing similars the points not...</description>
      <pubDate>Tue, 14 Jan 2003 09:46:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881141#M719476</guid>
      <dc:creator>Arturo Perez del Galleg</dc:creator>
      <dc:date>2003-01-14T09:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881142#M719477</link>
      <description>Thanx Leif.&lt;BR /&gt;&lt;BR /&gt;This is what I needed.</description>
      <pubDate>Tue, 14 Jan 2003 11:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881142#M719477</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-01-14T11:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881143#M719478</link>
      <description>J. Damian Benavent,&lt;BR /&gt;&lt;BR /&gt;You can now go through your profile and find your previous posts and assign points (166 of 227): &lt;A href="http://forums.itrc.hp.com/cm/TopSolutions/1,,BR158676!1!questions,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/TopSolutions/1,,BR158676!1!questions,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Tue, 14 Jan 2003 12:59:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881143#M719478</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2003-01-14T12:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can awk print to the standard error ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881144#M719479</link>
      <description>FWIW,&lt;BR /&gt;'gawk' (gnu awk -- the 'awk' on Linux) supports the following syntax:&lt;BR /&gt;&lt;BR /&gt; awk '{print "error" &amp;gt;&amp;gt; "/dev/stderr" } '&lt;BR /&gt;&lt;BR /&gt;  (note the special file name&lt;BR /&gt;   "/dev/stderr"&lt;BR /&gt;  )&lt;BR /&gt;as in:&lt;BR /&gt;&lt;BR /&gt;# echo | awk '{print "hello"} ; print "error" &amp;gt; "/dev/stderr" } '&lt;BR /&gt;&lt;BR /&gt;hello&lt;BR /&gt;error&lt;BR /&gt;&lt;BR /&gt;# echo | awk '{print "hello"} ; print "error" &amp;gt; "/dev/stderr" } ' &amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;error&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Wed, 15 Jan 2003 18:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-awk-print-to-the-standard-error/m-p/2881144#M719479</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2003-01-15T18:08:47Z</dc:date>
    </item>
  </channel>
</rss>

