problem wth sort utility?

2011-07-01 Thread Michael D. Setzer II
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=] [==

Re: problem wth sort utility?

2011-07-01 Thread Cameron Simpson
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

Re: problem wth sort utility?

2011-07-01 Thread Jakub Jelinek
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

Re: problem wth sort utility?

2011-07-01 Thread Roberto Ragusa
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

Re: problem wth sort utility?

2011-07-01 Thread Michael D. Setzer II
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

Re: problem wth sort utility?

2011-07-01 Thread Roberto Ragusa
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

Re: problem wth sort utility?

2011-07-01 Thread Bill Davidsen
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

Re: problem wth sort utility?

2011-07-01 Thread JD
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