<?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: HP-UX to Linux question in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449165#M15530</link>
    <description>Thanks Gregory.</description>
    <pubDate>Wed, 22 Dec 2004 14:23:37 GMT</pubDate>
    <dc:creator>Ridzuan Zakaria</dc:creator>
    <dc:date>2004-12-22T14:23:37Z</dc:date>
    <item>
      <title>HP-UX to Linux question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449163#M15528</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script that execute "sort" command to sort a file on HP-UX. However when I try to run the script on Linux it return a different result.&lt;BR /&gt;&lt;BR /&gt;Here is my input file layout called d1:&lt;BR /&gt;#SID:ORACLE_HOME:START:MONITOR:ORDER:SID_OWNER&lt;BR /&gt;dbcoemP:/oracle/v9205:Y:N:1:oracle&lt;BR /&gt;ABCP:/oracle/v9205:Y:N:1:oracle&lt;BR /&gt;&lt;BR /&gt;On HP-UX, the following output produced when "sort d1" is executed:&lt;BR /&gt;&lt;BR /&gt;#SID:ORACLE_HOME:START:MONITOR:ORDER:SID_OWNER&lt;BR /&gt;ABCP:/oracle/v9205:Y:N:1:oracle&lt;BR /&gt;dbcoemP:/oracle/v9205:Y:N:1:oracle&lt;BR /&gt;&lt;BR /&gt;But on Linux, I got the following result:&lt;BR /&gt;&lt;BR /&gt;ABCP:/oracle/v9205:Y:N:1:oracle&lt;BR /&gt;dbcoemP:/oracle/v9205:Y:N:1:oracle&lt;BR /&gt;#SID:ORACLE_HOME:START:MONITOR:ORDER:SID_OWNER:&lt;BR /&gt;&lt;BR /&gt;As far as my script is concern "sort d1" should produce HP-UX's output.&lt;BR /&gt;&lt;BR /&gt;I have tried "sort -r d1" but the output produced is not what I want.&lt;BR /&gt;&lt;BR /&gt;I am trying to make sure my script can run on both HP-UX and Linux environment. Is there any workaround for this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 13:58:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449163#M15528</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2004-12-22T13:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX to Linux question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449164#M15529</link>
      <description>Perhaps your locale setting is different&lt;BR /&gt;on Linux.  Check the LANG and LC_*&lt;BR /&gt;environment variables.  On my HP-UX 11.22&lt;BR /&gt;machine LANG is getting set to en_US.iso88591. &lt;BR /&gt;If I sort the file you describe, I get results&lt;BR /&gt;like your Linux example.  If I unset LANG or&lt;BR /&gt;change it to C or POSIX I get results like&lt;BR /&gt;your HP-UX example.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 14:19:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449164#M15529</guid>
      <dc:creator>Gregory Fruth</dc:creator>
      <dc:date>2004-12-22T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: HP-UX to Linux question</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449165#M15530</link>
      <description>Thanks Gregory.</description>
      <pubDate>Wed, 22 Dec 2004 14:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-to-linux-question/m-p/3449165#M15530</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2004-12-22T14:23:37Z</dc:date>
    </item>
  </channel>
</rss>

