- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Sort command compatability issue
Operating System - HP-UX
1752800
Members
5324
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2010 10:07 PM
тАО11-24-2010 10:07 PM
Sort command compatability issue
I have an Hp-UX box with Release 11.00.
We want to migrate shell scripts from HP-UX to Suse Linux box.
I am facing an issue with sort command.
When used sort with -u option in HP-UX, the command is deleting few records though they are unique. The number of records are getting reduced.
But the same command works fine in Linux.
Is there any compatibility issue with Sort command from HP-UX to Suse Linux. Please provide an alternate to get through this.
Thanks
Anand
We want to migrate shell scripts from HP-UX to Suse Linux box.
I am facing an issue with sort command.
When used sort with -u option in HP-UX, the command is deleting few records though they are unique. The number of records are getting reduced.
But the same command works fine in Linux.
Is there any compatibility issue with Sort command from HP-UX to Suse Linux. Please provide an alternate to get through this.
Thanks
Anand
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 01:24 AM
тАО11-25-2010 01:24 AM
Re: Sort command compatability issue
>When used sort with -u option in HP-UX, the command is deleting few records though they are unique.
What does you sort command look like?
What are the deleted records?
If you are going to Linux, why do you care what HP-UX sort did, that you didn't like?
What does you sort command look like?
What are the deleted records?
If you are going to Linux, why do you care what HP-UX sort did, that you didn't like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 01:47 AM
тАО11-25-2010 01:47 AM
Re: Sort command compatability issue
Hi,
Below is the few set of records I have in my file
STD054955140 1994-03-02-11.09.00.0000009999-12-31-11.09.00.000000NKKC8
STD054955220 1994-03-02-11.09.00.0000009999-12-31-11.09.00.000000NKKCB
STD054955280 1994-03-02-11.10.00.0000009999-12-31-11.10.00.000000NKKCC
STD054955330 1994-03-02-11.10.00.0000009999-12-31-11.10.00.000000NKKAF
STD054955350 1994-03-02-11.11.00.0000009999-12-31-11.11.00.000000NKKAI
STD054955370 1994-03-02-11.11.00.0000009999-12-31-11.11.00.000000NKKAC
STD054955390 1994-03-02-11.13.00.0000009999-12-31-11.13.00.000000NKKAJ
STD054955410
But after calling the below command, few lines are getting deleted in HP-UX.
sort -u -o STD054.new STD054.new
(STD054.new is the file contains the above data)
Why the sort command is deleting the lines even if they are unique?
After sorting the number of lines are reducing.
and all the locale env variables are same both in Linux and HP-UX
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
Just want to check is there any other setting in UNIX which is impacting sort criteria?
Thanks
Anand
Below is the few set of records I have in my file
STD054955140 1994-03-02-11.09.00.0000009999-12-31-11.09.00.000000NKKC8
STD054955220 1994-03-02-11.09.00.0000009999-12-31-11.09.00.000000NKKCB
STD054955280 1994-03-02-11.10.00.0000009999-12-31-11.10.00.000000NKKCC
STD054955330 1994-03-02-11.10.00.0000009999-12-31-11.10.00.000000NKKAF
STD054955350 1994-03-02-11.11.00.0000009999-12-31-11.11.00.000000NKKAI
STD054955370 1994-03-02-11.11.00.0000009999-12-31-11.11.00.000000NKKAC
STD054955390 1994-03-02-11.13.00.0000009999-12-31-11.13.00.000000NKKAJ
STD054955410
But after calling the below command, few lines are getting deleted in HP-UX.
sort -u -o STD054.new STD054.new
(STD054.new is the file contains the above data)
Why the sort command is deleting the lines even if they are unique?
After sorting the number of lines are reducing.
and all the locale env variables are same both in Linux and HP-UX
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
Just want to check is there any other setting in UNIX which is impacting sort criteria?
Thanks
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2010 02:13 AM
тАО11-25-2010 02:13 AM
Re: Sort command compatability issue
>But after calling the below command, few lines are getting deleted in HP-UX.
Which lines? Are they still missing if you remove -u?
I get all 8 lines on 11.23.
>Just want to check is there any other setting in UNIX which is impacting sort criteria?
sort(1) only lists the ones you have.
Which lines? Are they still missing if you remove -u?
I get all 8 lines on 11.23.
>Just want to check is there any other setting in UNIX which is impacting sort criteria?
sort(1) only lists the ones you have.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP