- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Need help in sort:“sort: Cannot use more than 9 so...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
02-26-2007 12:34 AM
02-26-2007 12:34 AM
Can someone help me in resolving following error, “sort: Cannot use more than 9 sort keys”?
We have Hp Unix B.11.11 U 9000/800 with perl, v5.8.0
Thanks in Advance
Regards
Srini
Solved! Go to Solution.
- Tags:
- Sort
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 12:41 AM
02-26-2007 12:41 AM
Re: Need help in sort:“sort: Cannot use more than 9 sort keys”
see "man sort":
"A maximum of 9 -k options can be given"
You are trying to sort the file by too many keys. Reduce the number of keys.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 12:51 AM
02-26-2007 12:51 AM
SolutionYou have an opportunity to improve your sort times let alone handle the necessary number of sort keys.
Before sorting, construct a sort key at the end or at the beginning of your records that consists of the multiple keys you need stated in the relative order of sort importance.
Then, sort on the manufactured single key. Trim the sort key from your record before you create your output.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 02:22 PM
02-26-2007 02:22 PM
Re: Need help in sort:“sort: Cannot use more than 9 sort keys”
If this was an industrial strength sort routine, it would already do that. ;-)
At least that's what the system sort on MPE/iX did.
You are probably correct that sort(1) doesn't do that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 06:17 PM
02-26-2007 06:17 PM
Re: Need help in sort:“sort: Cannot use more than 9 sort keys”
Thanks for suggestion.
Regards
Srini