I'm getting results that I don't expect and different from busybox
sort?
The file contains partition infomation
[==DISK==] [=NAME==]
[SIZE] [MAJ] [MIN]
[sda ] [Hitachi HDP72505 ] [ 465.76 GB] [ 8] [
0]
[=DEVICE=] [==
On 01Jul2011 17:00, Michael D. Setzer II wrote:
| I'm getting results that I don't expect and different from busybox
| sort?
[...]
| [sda3] [ext3 ] [] [ 434.38 GB] [ 8] [
3]
| [sda ] [Hitachi HDP72505 ] [ 465.76 GB] [ 8] [
|
| Which
On Fri, Jul 01, 2011 at 07:16:29PM +1000, Cameron Simpson wrote:
> Both space and tab sort lexically before digits (which start at 48 for
> "0"). If you're using another whitespace codepoint by accident then it
> will probably come above the digits and thus change the sort result.
That's true only
On 07/01/2011 09:00 AM, Michael D. Setzer II wrote:
> I'm getting results that I don't expect and different from busybox
> sort?
The busybox sorting is more simple (and more correct, to your eyes).
Try with:
LC_COLLATE=C sort a >b
or
LC_ALL=C sort a >b
to disable the linguistic "smart" sorti
On 1 Jul 2011 at 11:50, Roberto Ragusa wrote:
Date sent: Fri, 01 Jul 2011 11:50:39 +0200
From: Roberto Ragusa
To: Community support for Fedora users
Subject:Re: problem wth sort utility?
Send reply to: Community
On 07/01/2011 12:08 PM, Michael D. Setzer II wrote:
> Thanks. I looked thru the man sort, but didn't find a switch that I
> would expect to change this.
>
> The command I use that no works is
> fsarchiver probe 2>&1 | LC_ALL=C sort
>
> What makes this not the default?
>
> I do other filtering
Michael D. Setzer II wrote:
> On 1 Jul 2011 at 11:50, Roberto Ragusa wrote:
>
> Date sent:Fri, 01 Jul 2011 11:50:39 +0200
> From: Roberto Ragusa
> To: Community support for Fedora users
>
> Subject: Re: problem wth
On 07/01/2011 12:00 AM, Michael D. Setzer II wrote:
> I'm getting results that I don't expect and different from busybox
> sort?
>
> The file contains partition infomation
> [==DISK==] [=NAME==]
> [SIZE] [MAJ] [MIN]
> [sda ] [Hitachi HDP72505