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 to accept the | field separator.
> I get the error: option '-t' requires an argument
> 
> My command line is sort +4rn -5 -t| datafile.dat -o datafile.dat.sorted
> 
> I am using r to sort in reverse order from highest number to lowest, and n
> to denote numeric field. I have been through the man pages and can not see
> what I am doing wrong. Any help much appreciated.
> 

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]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to