> How to sort a textfile on the 20:th posission ?
> I have tryed 'sort +20 sort.txt'. But the text will only be sorted on the
> first letter in every line.

sort uses the concept of a field. A field is any 'normal' character,
divided from other fields by whitespace. So sort +20 will sort on field
number 21 (as sort starts numbering fields from 0).

You can also tell sort which position within the field you want it to
use for the sort.

So if your file has no whitespace, and you want it to sort on character
20, you'll give this line:

sort +0.19 file


-
To get out of this list, please send email to [EMAIL PROTECTED] with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at http://www.suse.com/Support/Doku/FAQ/ and the
archiv at http://www.suse.com/Mailinglists/suse-linux-e/index.html

Reply via email to