Re: Help with sorting fields in a database

1999-11-13 Thread rpjday
On Sun, 14 Nov 1999, tom minchin wrote: > It probably thinks you are trying to pipe the output of sort into datafile. > > Try sort +4rn -5 -t\| datafile.dat -o datafile.dat.sorted > > [EMAIL PROTECTED] i'm curious why no one is suggesting the alternative form of sort: sort -k5rn,5 -t\| ...

Re: Help with sorting fields in a database

1999-11-13 Thread tom minchin
On Sat, Nov 13, 1999 at 10:14:56AM -0500, gnielson wrote: > Hi, > > I have an ascii data file, using | as the field separator, and I want to > be able to sort that file's 5th field, the price field, in descending > order from highest to lowest price. > > I can not seem to get the sort command t

Re: Help with sorting fields in a database

1999-11-13 Thread Todd A. Jacobs
On Sat, 13 Nov 1999, gnielson wrote: > My command line is sort +4rn -5 -t| datafile.dat -o datafile.dat.sorted Put the pipe in single quotes. -- Todd A. Jacobs Network Systems Engineer -- To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject.

Re: Help with sorting fields in a database

1999-11-13 Thread Steve Borho
On Sat, Nov 13, 1999 at 10:14:56AM -0500, gnielson wrote: > Hi, > > I have an ascii data file, using | as the field separator, and I want to > be able to sort that file's 5th field, the price field, in descending > order from highest to lowest price. > > I can not seem to get the sort command t

Help with sorting fields in a database

1999-11-13 Thread gnielson
Hi, I have an ascii data file, using | as the field separator, and I want to be able to sort that file's 5th field, the price field, in descending order from highest to lowest price. I can not seem to get the sort command to accept the | field separator. I get the error: option '-t' requires an