<?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: How read data onto an array in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597053#M854816</link>
    <description>Hi Klaus,&lt;BR /&gt;&lt;BR /&gt;You need to use:&lt;BR /&gt;&lt;BR /&gt;set -A array -- $points&lt;BR /&gt;&lt;BR /&gt;to indicate "end of arguments, beginning of data".&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
    <pubDate>Thu, 18 Oct 2001 07:05:14 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2001-10-18T07:05:14Z</dc:date>
    <item>
      <title>How read data onto an array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597052#M854815</link>
      <description>Hallo to all&lt;BR /&gt;&lt;BR /&gt;some simple task is just not working:&lt;BR /&gt;I need to read some coordinates to an array using ksh script. Until now I tried this:&lt;BR /&gt;&lt;BR /&gt;points=`cat $inputfile | grep ... | cut ... `&lt;BR /&gt;------- example ---------------------&lt;BR /&gt;echo $points     # trace only&lt;BR /&gt;-0.00000000000052 229.37500000000000 -86.20000000000000 291.90000000000000 0.00000000000367 -86.20000000000000 281.27957&lt;BR /&gt;5308520 210.960466611540  (etc...)&lt;BR /&gt;-----  end of example -----------------&lt;BR /&gt;now I used to go on like this:&lt;BR /&gt;set -A array $points&lt;BR /&gt;&lt;BR /&gt;but then I get this error message:&lt;BR /&gt;-0.00000000000052: A specified flag is not valid for this command.&lt;BR /&gt;&lt;BR /&gt;If I eliminate all "-" signs from $inputfile then the script works fine to the end.&lt;BR /&gt;&lt;BR /&gt;I want to have the result as:&lt;BR /&gt;$array[0] -0.00000000000052 &lt;BR /&gt;$array[1] 229.37500000000000 &lt;BR /&gt;$array[2] -86.20000000000000 &lt;BR /&gt;&lt;BR /&gt;How can I get the above results even with negative numbers ?&lt;BR /&gt;&lt;BR /&gt;thanks for any advises</description>
      <pubDate>Thu, 18 Oct 2001 06:53:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597052#M854815</guid>
      <dc:creator>Klaus  Frank</dc:creator>
      <dc:date>2001-10-18T06:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How read data onto an array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597053#M854816</link>
      <description>Hi Klaus,&lt;BR /&gt;&lt;BR /&gt;You need to use:&lt;BR /&gt;&lt;BR /&gt;set -A array -- $points&lt;BR /&gt;&lt;BR /&gt;to indicate "end of arguments, beginning of data".&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Thu, 18 Oct 2001 07:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597053#M854816</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-10-18T07:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: How read data onto an array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597054#M854817</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use /sbin/sh and it works fine with&lt;BR /&gt;&lt;BR /&gt;set -A array $points&lt;BR /&gt;&lt;BR /&gt;E.</description>
      <pubDate>Thu, 18 Oct 2001 07:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-read-data-onto-an-array/m-p/2597054#M854817</guid>
      <dc:creator>Eugen Cocalea</dc:creator>
      <dc:date>2001-10-18T07:05:46Z</dc:date>
    </item>
  </channel>
</rss>

