<?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: Script question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296005#M715709</link>
    <description>Hi there try this one, tested and works:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;list=`cat filename`&lt;BR /&gt;myfunct()&lt;BR /&gt;{&lt;BR /&gt;   VAR11=$#&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;if [ VAR11 -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo $1&lt;BR /&gt;   shift&lt;BR /&gt;   let VAR11=$VAR11-1&lt;BR /&gt;else&lt;BR /&gt;   exit&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;myfunct $list&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
    <pubDate>Fri, 04 Jun 2004 04:38:19 GMT</pubDate>
    <dc:creator>Bharat Katkar</dc:creator>
    <dc:date>2004-06-04T04:38:19Z</dc:date>
    <item>
      <title>Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296002#M715706</link>
      <description>hello,&lt;BR /&gt;here my file content:&lt;BR /&gt;253 589 1235 4568 45682&lt;BR /&gt;456 87 1023 854&lt;BR /&gt;i want to sort this file in a list with &lt;BR /&gt;one column :&lt;BR /&gt;253&lt;BR /&gt;589&lt;BR /&gt;1235&lt;BR /&gt;4568&lt;BR /&gt;...&lt;BR /&gt;Have you a script idea ? thanks&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2004 04:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296002#M715706</guid>
      <dc:creator>iranzo</dc:creator>
      <dc:date>2004-06-04T04:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296003#M715707</link>
      <description>Here's a simple answer&lt;BR /&gt; &lt;BR /&gt;for i in `cat filename`; do  echo $i; done | sort -r</description>
      <pubDate>Fri, 04 Jun 2004 04:25:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296003#M715707</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-04T04:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296004#M715708</link>
      <description>Hi there,&lt;BR /&gt;# cat filename | xargs &lt;BR /&gt;&lt;BR /&gt;This will output in one single row.&lt;BR /&gt;See if this helps.&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;try with col command.&lt;BR /&gt;See man col&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jun 2004 04:26:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296004#M715708</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-06-04T04:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296005#M715709</link>
      <description>Hi there try this one, tested and works:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;list=`cat filename`&lt;BR /&gt;myfunct()&lt;BR /&gt;{&lt;BR /&gt;   VAR11=$#&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;if [ VAR11 -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo $1&lt;BR /&gt;   shift&lt;BR /&gt;   let VAR11=$VAR11-1&lt;BR /&gt;else&lt;BR /&gt;   exit&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;}&lt;BR /&gt;myfunct $list&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 04 Jun 2004 04:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296005#M715709</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-06-04T04:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296006#M715710</link>
      <description>And just so we can get rid of the loop&lt;BR /&gt; &lt;BR /&gt;cat tester | tr [:blank:] "\012" | sort -r</description>
      <pubDate>Fri, 04 Jun 2004 04:40:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296006#M715710</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-04T04:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296007#M715711</link>
      <description>Sorry to be a pain but all references to "sort -r " should, of course, be "sort -n"</description>
      <pubDate>Fri, 04 Jun 2004 04:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-question/m-p/3296007#M715711</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-04T04:46:28Z</dc:date>
    </item>
  </channel>
</rss>

