RE: Specifying sort fields

2004-04-23 Thread Warren Block
On Fri, 23 Apr 2004, JJB wrote: > Thank you that worked. You know that nowhere in the 'man sort' info > does it say that to use sort command you have to use pipe commands > to feed it data. You don't have to use pipes or redirection: sort -n /etc/hosts > Don't you think the man sort info needs

Re: Specifying sort fields

2004-04-23 Thread Kirk Strauser
At 2004-04-23T13:00:17Z, "JJB" <[EMAIL PROTECTED]> writes: > Thank you that worked. You know that nowhere in the 'man sort' info does > it say that to use sort command you have to use pipe commands to feed it > data. It doesn't because you don't. The syntax is: sort [OPTION]... [FILE]... w

Re: Specifying sort fields

2004-04-23 Thread Dan Nelson
In the last episode (Apr 23), JJB said: > Thank you that worked. You know that nowhere in the 'man sort' info > does it say that to use sort command you have to use pipe commands to > feed it data. How is somebody without UNIX programming background > going to read that and know how to feed sort it

RE: Specifying sort fields

2004-04-23 Thread JJB
004 5:35 PM To: JJB Cc: [EMAIL PROTECTED] ORG Subject: Re: Specifying sort fields In the last episode (Apr 22), JJB said: > How to specify the fields the sort program is to sort on? > > My file has blanks between the fields and I want to sort on > field number 9 which is ip address. > &g

Re: Specifying sort fields

2004-04-22 Thread Dan Nelson
In the last episode (Apr 22), JJB said: > How to specify the fields the sort program is to sort on? > > My file has blanks between the fields and I want to sort on > field number 9 which is ip address. > > I want to sort filea and put results in fileb. > > A sample of the sort command to be us

Specifying sort fields

2004-04-22 Thread JJB
How to specify the fields the sort program is to sort on? My file has blanks between the fields and I want to sort on field number 9 which is ip address. I want to sort filea and put results in fileb. A sample of the sort command to be used from the command line would go an long way to underst