Re: a two-level 'sort' question
subPlanck_at_excite.com
Date: 03/29/05
- Next message: Bill Marcum: "Re: SCO UNIX v/386 RELEASE 3.2 version 2.0"
- Previous message: AT&T_RETRO: "SCO UNIX v/386 RELEASE 3.2 version 2.0"
- In reply to: Bill Seivert: "Re: a two-level 'sort' question"
- Next in thread: Bill Marcum: "Re: a two-level 'sort' question"
- Reply: Bill Marcum: "Re: a two-level 'sort' question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2005 09:13:37 -0800
Bill Seivert wrote:
> >
> >>I'm stuck trying to sort a long list of files in the form:
> >>
> >>Feb 24 13:50 060399_20a08.124
> >>Feb 22 12:06 060399_20a09.035
> >>Feb 22 12:06 060399_20a09.034
> >>
> >>whereby the entries are first sorted/grouped by
> >>sort -t_ -d -k 2.1,2.5
> >>and each block is sorted in an ascending order by date.
[...]
> Try:
> sort -t_ -d -k 2.1,2.5 -k 1.1M,1.3 -k 1.5n,1.6 -k 1.7n,1.8 -k
1.10n,1.11
> -k 1.14n,1.19
This works the way I wanted it to work, thanks, but what made 'sort'
change its separator from an underscore to a space in the M term? What
are the separator change/cancellation rules in 'sort'? Can't find it
in the man pages...
z.entropic
- Next message: Bill Marcum: "Re: SCO UNIX v/386 RELEASE 3.2 version 2.0"
- Previous message: AT&T_RETRO: "SCO UNIX v/386 RELEASE 3.2 version 2.0"
- In reply to: Bill Seivert: "Re: a two-level 'sort' question"
- Next in thread: Bill Marcum: "Re: a two-level 'sort' question"
- Reply: Bill Marcum: "Re: a two-level 'sort' question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|