1833770 Members
2168 Online
110063 Solutions
New Discussion

Sorting and searching

 
SOLVED
Go to solution
Raynald Boucher
Super Advisor

Sorting and searching

Goodc day all!

2 quick ones today:

1- is there a "sort" program that works on columns instead of fields?

2- How can I browze previous forum history for questions similar to the one I have?

Merci!
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor
Solution

Re: Sorting and searching

Hi:

1) Yes, use a restricted sort key:

field_start[type][,field_end[type]]

...which defines a key field beginning at field_start and ending at field_end. See the 'sort' man pages for more information.

You may also want to define the 'field' delimiter. In that case use the 't delimiter' option, too.

2) As for the Forum 'search', click the SEARCH button on the upper left of any page!

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Sorting and searching

Question 2 is easy:

Click on the search button on the upper left side of the page - under the HP logo. Check the various options (any word, exact phrase), how you want the output presented (results per page, sort order), click where you want to search (ITRC forums, patch database), key in your search phrase and press the search button.

Question 1 - I'm not sure what you mean.


Pete

Pete
Uday_S_Ankolekar
Honored Contributor

Re: Sorting and searching

If you want sort something from any command output then use with | sort -nk#

for example if you want sort bdf command on its fourth field

bdf | sort -nk4

Use -rnk for reverse order.

For second questions click on search and check on community forums to browse on forums

-USA..
Good Luck..
Raynald Boucher
Super Advisor

Re: Sorting and searching

Hey!
thanks!

I actually found out how to search by myself... Incredible!

As for the sort question, the "Search" engine returned a hit with the exact answer I wanted:

sort -k.,.

Thanks again.

And I DID assign points.
Please let me know if they don't appear because that seems to happen at times... can't figure out why.

Take care.
Pete Randall
Outstanding Contributor

Re: Sorting and searching

The points not appearing issue is apparently related to the browser being used, the service provider, the time of day, the phase of the moon, and whether the day of the week ends in a "y". Multiple retries usually, eventually work.

In this case it would appear that it's time for a retry.

Pete

Pete
Raynald Boucher
Super Advisor

Re: Sorting and searching

2nd try assigning points...
Here goes
Pete Randall
Outstanding Contributor

Re: Sorting and searching

That did it!

Merci

Pete