<?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 Text allignment, question. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113009#M313631</link>
    <description>Hi,&lt;BR /&gt;How to allign this text peroperly,&lt;BR /&gt;Please see the attachment,&lt;BR /&gt;&lt;BR /&gt;Any script or command will help,&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,</description>
    <pubDate>Thu, 06 Dec 2007 19:36:28 GMT</pubDate>
    <dc:creator>rveri</dc:creator>
    <dc:date>2007-12-06T19:36:28Z</dc:date>
    <item>
      <title>Text allignment, question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113009#M313631</link>
      <description>Hi,&lt;BR /&gt;How to allign this text peroperly,&lt;BR /&gt;Please see the attachment,&lt;BR /&gt;&lt;BR /&gt;Any script or command will help,&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,</description>
      <pubDate>Thu, 06 Dec 2007 19:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113009#M313631</guid>
      <dc:creator>rveri</dc:creator>
      <dc:date>2007-12-06T19:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text allignment, question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113010#M313632</link>
      <description>Hi Rveri:&lt;BR /&gt;&lt;BR /&gt;Use 'printf' (see the manpages).  You can read your exiting data using a shell, 'awk' or Perl script.&lt;BR /&gt;&lt;BR /&gt;Ascertain the number of columns in any line read and issue an appropriate 'printf' statement.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 06 Dec 2007 19:41:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113010#M313632</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-12-06T19:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Text allignment, question.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113011#M313633</link>
      <description>Use this awk script to get you started:&lt;BR /&gt;&lt;BR /&gt;my.awk&lt;BR /&gt;--------------------&lt;BR /&gt;{&lt;BR /&gt;  if (NF == 7) {s1 = ""} else {s1 = $1}&lt;BR /&gt;  printf("%-10.10s ",s1)&lt;BR /&gt;  i = 2&lt;BR /&gt;  while (i &amp;lt; NF)&lt;BR /&gt;    {&lt;BR /&gt;      printf("%-10.10s ",$i)&lt;BR /&gt;      ++i&lt;BR /&gt;    }&lt;BR /&gt;  printf("-10.10s\n",$NF)&lt;BR /&gt;}&lt;BR /&gt;--------------------------&lt;BR /&gt;&lt;BR /&gt;Use it like this:&lt;BR /&gt;&lt;BR /&gt;sar -d 2 5 | awk -f my.awk&lt;BR /&gt;or&lt;BR /&gt;awk -f my.awk myinputfile&lt;BR /&gt;&lt;BR /&gt;This is not meant to be a finished script but it will be close. A better script would build the awk script "on the fly" or a heredocs so that the external awk script is not needed.</description>
      <pubDate>Thu, 06 Dec 2007 19:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/text-allignment-question/m-p/4113011#M313633</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-12-06T19:53:51Z</dc:date>
    </item>
  </channel>
</rss>

