delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/16/16:14:48

From: mdruiter AT cs DOT vu DOT nl
Newsgroups: comp.os.msdos.djgpp
Subject: Re: sort-problem
Date: Mon, 16 Aug 1999 14:53:05 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 23
Message-ID: <7p98kh$8c9@cs.vu.nl>
References: <37B85E8D DOT 308D AT TU-Berlin DOT DE>
NNTP-Posting-Host: galjas.cs.vu.nl
X-Sender: mdruiter AT cs DOT vu DOT nl
User-Agent: tin/pre-1.4-19990413 ("Endemoniada") (UNIX) (SunOS/5.5.1 (sun4u))
X-Poster-Key: sha1:MSkbrTSGMaiq+BsxNpPAHzYOEEc=
Cancel-Lock: sha1:9SuQmrULlY8/Ay1uzmDYgBAfMS0=
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> I have sort (GNU textutils) 1.22 and want to sort the following
> lines from the 40. character-position. All the blanks are blanks,
> so I don't want to use fields. The invocation with
> 	sort +0.40
> doesn't work. Who can give me a hint?

If you do not want to sort on fields (words separated by whitespace),
but on columns, I think you might want to take a look at the -k
switch. I have used it like that before, for instance:

sort -f -k 1.80,1.109

Although Textutils is compiled with DJGPP, I don't think this
newsgroup is an appropriate place to ask questions about GNU utils in
general. Thinking about it, I cannot come up with an appropriate place
more specific than comp.unix.programmer, so... You have tried the
following haven't you?

info textutils sort

Hope this helps,

Groente, Michel.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019