Re: need help with sort
From: Juha Laiho (Juha.Laiho_at_iki.fi)
Date: 06/21/04
- Previous message: weaselboy1976: "need help with sort"
- In reply to: weaselboy1976: "need help with sort"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 21 Jun 2004 17:37:04 GMT
weaselboy1976@yahoo.com (weaselboy1976) said:
>I can't seem to figure out the sort command.
Granted, did take some experimentation.
>I have lines like:
>1.8
>1.2
>1.12
>2.2
>I want to sort by the number before the dot "." and then the
>number after the dot ".", so I want:
>1.2
>1.8
>1.12
>2.2
sort -n -t. -k1,1 -k2,2
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
- Previous message: weaselboy1976: "need help with sort"
- In reply to: weaselboy1976: "need help with sort"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|