<?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: awk help and shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141870#M801014</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use the \t suggested by Jean with the print command also.&lt;BR /&gt;&lt;BR /&gt;LINE2=`echo $LINE | awk '{print $1,"\t",$2,"\t",$3}'`&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Thu, 11 Dec 2003 02:47:02 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2003-12-11T02:47:02Z</dc:date>
    <item>
      <title>awk help and shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141867#M801011</link>
      <description>I have a shell script to extract some omniback report &lt;BR /&gt;&lt;BR /&gt;I wish to remove some of the column.&lt;BR /&gt;&lt;BR /&gt;QAS Completed trans 12/11/03 05:00:06 1071090006 12/11/03 05:04:07 1071090247 0:00 0:04 0.37 1 0 3 0 0 0 4 4 4 100% root.sys@cm.esc 2003/12/11-14&lt;BR /&gt;&lt;BR /&gt;In my shell script &lt;BR /&gt;cat $DESTDIR/ses.final | while read LINE&lt;BR /&gt;do&lt;BR /&gt;LINE2=`echo $LINE | awk '{print $1 $2 $3}'`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Is it possible to put \t (tab) in between $1 $2 &amp;amp; $3</description>
      <pubDate>Thu, 11 Dec 2003 02:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141867#M801011</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2003-12-11T02:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: awk help and shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141868#M801012</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You just need to use printf instead of print :&lt;BR /&gt;&lt;BR /&gt;LINE2=`echo $LINE | awk '{printf "%s\t%s\t%s\n", $1, $2, $3}'`&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 11 Dec 2003 02:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141868#M801012</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-12-11T02:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: awk help and shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141869#M801013</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;&lt;BR /&gt;LINE2=`echo $LINE | awk '{print $1,"\011",$2,"\011",$3}'`&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2003 02:40:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141869#M801013</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-12-11T02:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: awk help and shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141870#M801014</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you can use the \t suggested by Jean with the print command also.&lt;BR /&gt;&lt;BR /&gt;LINE2=`echo $LINE | awk '{print $1,"\t",$2,"\t",$3}'`&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2003 02:47:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141870#M801014</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2003-12-11T02:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: awk help and shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141871#M801015</link>
      <description>No need to use cat while read, you can do the whole thing with awk...&lt;BR /&gt;&lt;BR /&gt;awk '&lt;BR /&gt;{printf ("%s\t%s\t%s\n", $1, $2, $3)}&lt;BR /&gt;' $DESTDIR/ses.final &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-- Graham&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2003 03:31:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141871#M801015</guid>
      <dc:creator>Graham Cameron_1</dc:creator>
      <dc:date>2003-12-11T03:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: awk help and shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141872#M801016</link>
      <description>or just do it all in the shell&lt;BR /&gt;&lt;BR /&gt;cat $DESTDIR/ses.final |&lt;BR /&gt;while read var1 var2 var3&lt;BR /&gt;do&lt;BR /&gt;print "$var1\t$var2\t$var3"&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Dec 2003 10:13:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-and-shell-script/m-p/3141872#M801016</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-12-11T10:13:31Z</dc:date>
    </item>
  </channel>
</rss>

