<?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: file output formatting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181060#M664183</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;the output of the file is like&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;1 nn.abc.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;2 node_name.xyz.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;3 test_node Not Reachable&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;instead i want the output as &lt;BR /&gt;&amp;gt;&amp;gt;1 nn.abc.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;2 node_name.xyz.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;3 test_node Not Reachable&lt;BR /&gt;&lt;BR /&gt;I didn't find any difference between your output file and what you want.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
    <pubDate>Fri, 12 Jun 2009 10:02:48 GMT</pubDate>
    <dc:creator>Suraj K Sankari</dc:creator>
    <dc:date>2009-06-12T10:02:48Z</dc:date>
    <item>
      <title>file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181059#M664182</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I want to prcess a file on output as shown below pls help me&lt;BR /&gt;&lt;BR /&gt;the output of the file is like&lt;BR /&gt;&lt;BR /&gt;1 nn.abc.com     Reachable&lt;BR /&gt;2 node_name.xyz.com Reachable&lt;BR /&gt;3 test_node   Not Reachable&lt;BR /&gt;&lt;BR /&gt;instead i want the output as &lt;BR /&gt;&lt;BR /&gt;1 nn.abc.com          Reachable&lt;BR /&gt;2 node_name.xyz.com   Reachable&lt;BR /&gt;3 test_node           Not Reachable&lt;BR /&gt;&lt;BR /&gt;I have a small script which will test for node reachability where the output is found to be jumbled because of the node names&lt;BR /&gt;&lt;BR /&gt;pls guide me to get this required format&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 12 Jun 2009 09:57:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181059#M664182</guid>
      <dc:creator>PING_6</dc:creator>
      <dc:date>2009-06-12T09:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181060#M664183</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;the output of the file is like&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;1 nn.abc.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;2 node_name.xyz.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;3 test_node Not Reachable&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;instead i want the output as &lt;BR /&gt;&amp;gt;&amp;gt;1 nn.abc.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;2 node_name.xyz.com Reachable&lt;BR /&gt;&amp;gt;&amp;gt;3 test_node Not Reachable&lt;BR /&gt;&lt;BR /&gt;I didn't find any difference between your output file and what you want.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 12 Jun 2009 10:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181060#M664183</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-12T10:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181061#M664184</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Where is your input file ?&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 12 Jun 2009 10:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181061#M664184</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-12T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181062#M664185</link>
      <description>Hi Suraj,&lt;BR /&gt;&lt;BR /&gt;I want equal spacing irespective ov the node name size.My Fields are S.No,Node Name &amp;amp; Status.&lt;BR /&gt;&lt;BR /&gt;In this output id the nodename is short the status is printed near to that if the node name is long then the status is printed accordingly instead of this i want the output to be equally spaced like the contentes of any table.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 12 Jun 2009 10:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181062#M664185</guid>
      <dc:creator>PING_6</dc:creator>
      <dc:date>2009-06-12T10:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181063#M664186</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;see the below things&lt;BR /&gt;&lt;BR /&gt;[root@rspc521 suraj]# cat data&lt;BR /&gt;1 nn.abc.com Reachable&lt;BR /&gt;2 node_name.xyz.com Reachable&lt;BR /&gt;3 test_node Not Reachable&lt;BR /&gt;&lt;BR /&gt;[root@rspc521 suraj]# cat p&lt;BR /&gt;awk '{ printf "%-3s %-20s %s %s\n", $1,$2,$3,$4 }' data&lt;BR /&gt;&lt;BR /&gt;[root@rspc521 suraj]# sh p&lt;BR /&gt;1   nn.abc.com           Reachable&lt;BR /&gt;2   node_name.xyz.com    Reachable&lt;BR /&gt;3   test_node            Not Reachable&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 12 Jun 2009 10:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181063#M664186</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-12T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181064#M664187</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here you can't see the formated output&lt;BR /&gt;I hope you can see at your server in proper format.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 12 Jun 2009 10:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181064#M664187</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-12T10:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181065#M664188</link>
      <description>suraj pls find my requirement attached</description>
      <pubDate>Fri, 12 Jun 2009 10:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181065#M664188</guid>
      <dc:creator>PING_6</dc:creator>
      <dc:date>2009-06-12T10:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181066#M664189</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;[root@rspc521 suraj]# cat p&lt;BR /&gt;awk '{ printf "%-3s %-20s %s %s\n", $1,$2,$3,$4 }' data&lt;BR /&gt;&lt;BR /&gt;pls clarify this&lt;BR /&gt;&lt;BR /&gt;data is my input file, that fine&lt;BR /&gt;&lt;BR /&gt;Let me know how eactly i should type the above command &lt;BR /&gt;&lt;BR /&gt;Also if possible pls explain the awk params&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jun 2009 10:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181066#M664189</guid>
      <dc:creator>PING_6</dc:creator>
      <dc:date>2009-06-12T10:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181067#M664190</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Saw your attached file you will get the same output if you do what i said .&lt;BR /&gt;&lt;BR /&gt;just open a file suppose p &lt;BR /&gt;paste this below line&lt;BR /&gt;&lt;BR /&gt;awk '{ printf "%-s %-20s %s %s\n", $1,$2,$3,$4 }' data&lt;BR /&gt;&lt;BR /&gt;save the file&lt;BR /&gt;now at the command prompt type make sure your input file data in the same folder&lt;BR /&gt;&lt;BR /&gt;# sh p&lt;BR /&gt;you will get the output as you said&lt;BR /&gt;&lt;BR /&gt;see the link below to know about AWK&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/AWK" target="_blank"&gt;http://en.wikipedia.org/wiki/AWK&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 12 Jun 2009 10:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181067#M664190</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-12T10:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181068#M664191</link>
      <description>Hi Again,&lt;BR /&gt;&lt;BR /&gt;Forget to attached my output file.&lt;BR /&gt;&lt;BR /&gt;Find the attached file&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Fri, 12 Jun 2009 10:59:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181068#M664191</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-12T10:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: file output formatting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181069#M664192</link>
      <description>&lt;BR /&gt;thanks suraj its working fine.</description>
      <pubDate>Fri, 12 Jun 2009 11:03:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-output-formatting/m-p/5181069#M664192</guid>
      <dc:creator>PING_6</dc:creator>
      <dc:date>2009-06-12T11:03:49Z</dc:date>
    </item>
  </channel>
</rss>

