- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sorting the pages by field in 11th line.
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
Forums
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
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
06-27-2002 05:31 AM
06-27-2002 05:31 AM
Sorting the pages by field in 11th line.
I want to sort the pages by some positions(fields) in 11th line..
Please advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 05:34 AM
06-27-2002 05:34 AM
Re: Sorting the pages by field in 11th line.
Can you attach an example of your file.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 06:36 AM
06-27-2002 06:36 AM
Re: Sorting the pages by field in 11th line.
For ex. employees and locations
Overall sort by locations
within the location by employee's last name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 03:54 AM
07-11-2002 03:54 AM
Re: Sorting the pages by field in 11th line.
Try the attached script. AT least it will give you some idea.
Klaus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 04:25 AM
07-11-2002 04:25 AM
Re: Sorting the pages by field in 11th line.
Of course the simpler approach is to change the application that creates the report in the first place.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 05:47 AM
07-16-2002 05:47 AM
Re: Sorting the pages by field in 11th line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 06:18 AM
07-16-2002 06:18 AM
Re: Sorting the pages by field in 11th line.
i could not understand what do u want.
iam refering to ur employees and location example.
to sort on a particular column and with in that column with perticular string u can use sort -k option.
ex: sort -k 7,7
see sort man page
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 06:45 AM
07-16-2002 06:45 AM
Re: Sorting the pages by field in 11th line.
Then use perl's sort function to process the hashed array and dump out each persons entry.
If the text file is too large, then you will have to have a secondary file where you take each line of the original file, prefix it with your sort information plus a line counter, then call that standard unix "sort" command to sort the data.
Example-
12345
12345
12345
Then the unix sort command would be something like-
sort -t\t +0-2
Their is another newer syntax to the sort command, and you could look it up in the "man" pages.
The line counters will make sure that the data stays in proper order for each person.
Many tasks within unix require some scripting/programming skills. Without writing the whole program, I hope I've given you enough ideas on how to proceede.
Good Luck
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2002 09:14 AM
07-16-2002 09:14 AM
Re: Sorting the pages by field in 11th line.
thanks to you all.