Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Pádraig Brady
On 04/03/10 06:01, Joey Degges wrote: Hello, Matt (cc'd, not on list) and I have developed a patch that parallelizes sort using pthreads. The threading approach taken here is to break up input files into groups based on physical device and sort each of those groups in parallel. This allows for s

Re: [Fedora-livecd-list] LANGUAGE trumps LC_ALL

2010-03-04 Thread Jim Meyering
Jim Meyering wrote: > Mads Kiilerich wrote: ... >> be aware that LANGUAGE trumps: >> >> $ LC_ALL=fr_FR.UTF-8 LANGUAGE=da_DK /bin/cat no-such >> /bin/cat: no-such: Ingen sådan fil eller filkatalog >> >> $ LANGUAGE=da_DK.UTF-8 LC_ALL=fr_FR.UTF-8 LANG=C /sbin/parted >> WARNING: You are not superuser.

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Chen Guo
Hi Padraig, Actually we're in the same class. They were assigned external sort, my group worked on internal sort. Our patch submission's imminent, looks like you guys are gonna be busy with code reviews :-) - Original Message > From: Pádraig Brady > To: Joey Degges > Cc: Report b

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Pádraig Brady
On 04/03/10 09:55, Chen Guo wrote: Hi Padraig, Actually we're in the same class. They were assigned external sort, my group worked on internal sort. Our patch submission's imminent, looks like you guys are gonna be busy with code reviews :-) OK thanks :) If we do see a benefit from using

[PATCH] maint: rename the si_present variable in sort to iec_present

2010-03-04 Thread Pádraig Brady
commit a7b4fa01ddde3f09eb642cb6378e16522917f8e0 Author: Pádraig Brady Date: Thu Mar 4 10:54:21 2010 + maint: rename the si_present variable in sort to iec_present * src/sort.c: The units containing 'i' are actually IEC not SI. diff --git a/src/sort.c b/src/sort.c index 02b2351..5

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Joey Degges
2010/3/4 Pádraig Brady > On 04/03/10 09:55, Chen Guo wrote: > >> Hi Padraig, >> Actually we're in the same class. They were assigned external sort, my >> group >> worked on internal sort. Our patch submission's imminent, looks like you >> guys >> are gonna be busy with code reviews :-) >> > >

Re: [PATCH] maint: rename the si_present variable in sort to iec_present

2010-03-04 Thread Jim Meyering
Pádraig Brady wrote: > > maint: rename the si_present variable in sort to iec_present > > * src/sort.c: The units containing 'i' are actually IEC not SI. > > diff --git a/src/sort.c b/src/sort.c > index 02b2351..5a937dd 100644 > --- a/src/sort.c > +++ b/src/sort.c > @@ -181,7 +181,7 @@ stru

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Pádraig Brady
On 04/03/10 06:01, Joey Degges wrote: Hello, Matt (cc'd, not on list) and I have developed a patch that parallelizes sort using pthreads. The threading approach taken here is to break up input files into groups based on physical device and sort each of those groups in parallel. This allows for s

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Chen Guo
Hi Padraig, The documentations coming in my patch, since we're both using the same --threads option. I haven't put any examples in yet, but I suppose I should. Thanks for the heads up. Why would there be a need to switch to processes? There's more memory and communication overhead. The onl

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Pádraig Brady
On 04/03/10 12:12, Chen Guo wrote: Hi Padraig, The documentations coming in my patch, since we're both using the same --threads option. I haven't put any examples in yet, but I suppose I should. Thanks for the heads up. Why would there be a need to switch to processes? There's more mem

Re: a different approach to autocompletion

2010-03-04 Thread Eric Blake
According to Martin Walch on 3/3/2010 3:03 PM: > Hello list, > > sorry if this is not the appropriate place for the following suggestion, but > I > do not which place would be bette. > > I think autocompletion in shells (that is usually triggered with tab) is a > great feature which I do not w

Fw: side-effect implementing the mv command

2010-03-04 Thread Derick Centeno
Begin forwarded message: Date: Wed, 3 Mar 2010 13:58:59 -0500 From: Derick Centeno To: Eric Blake Subject: Re: side-effect implementing the mv command On Wed, 03 Mar 2010 08:08:55 -0700 Eric Blake wrote: > [please keep replies on the list, so that others may chime in] > > According to Der

Re: Fw: side-effect implementing the mv command

2010-03-04 Thread Eric Blake
Hi Derick, According to Derick Centeno on 3/4/2010 3:38 AM: > >> [please keep replies on the list, so that others may chime in] Thanks for adding the list back in. >> I asked for 'ls -l' so we could see full details, such as which files are >> symlinks. According to your screenshot, you happen

[Patch In Progress] rm -d, --directory

2010-03-04 Thread William Plusnick
Hello, I am working on a patch that adds a FreeBSD style directory option, as suggested in the rm.c source code. The --directory (-d) option will delete empty directories, as well as the usual files, passed via command line. I am now in the documentation stages and nearing completion (all the funct

Re: [Patch In Progress] rm -d, --directory

2010-03-04 Thread Eric Blake
According to William Plusnick on 3/4/2010 9:02 AM: > Hello, > I am working on a patch that adds a FreeBSD style directory option, as > suggested in the rm.c source code. The --directory (-d) option will > delete empty directories, as well as the usual files, passed via > command line. Thanks for d

you are not going to be able to sort this by the fifth field.

2010-03-04 Thread jidanni
Try as you might, there is no way you are going to sort by this field, $ LC_CTYPE=zh_TW.UTF-8 w3m -dump \ http://www.tcb-bank.com.tw/tcb/servicesloc/atm_location/taichung_county_atm.htm | perl -anlwe 'print $F[4] if exists $F[4]'|LC_CTYPE=C sort without ripping it out of the table first using

say that cut can't handle more than one field demarcator

2010-03-04 Thread jidanni
On (info "(coreutils) cut invocation") please add: cut has no way to specify a group of blanks as a field demarcator. If you want that, use perl -a. Also use perl's split if you want regexp demarcators, etc. If that is indeed the case.

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Joey Degges
2010/3/4 Pádraig Brady > On 04/03/10 06:01, Joey Degges wrote: > >> Hello, >> >> Matt (cc'd, not on list) and I have developed a patch that parallelizes >> sort >> using pthreads. The threading approach taken here is to break up input >> files >> into groups based on physical device and sort each

Re: you are not going to be able to sort this by the fifth field.

2010-03-04 Thread Pádraig Brady
On 04/03/10 19:59, jida...@jidanni.org wrote: Try as you might, there is no way you are going to sort by this field, $ LC_CTYPE=zh_TW.UTF-8 w3m -dump \ http://www.tcb-bank.com.tw/tcb/servicesloc/atm_location/taichung_county_atm.htm | perl -anlwe 'print $F[4] if exists $F[4]'|LC_CTYPE=C so

Re: [PATCH] sort: parallel external sort implementation

2010-03-04 Thread Pádraig Brady
On 05/03/10 00:39, Joey Degges wrote: 2010/3/4 Pádraig Brady mailto:p...@draigbrady.com>> Have you considered the seek characteristics of SSDs and how they might affect things (with consideration that mechanical disks will be replaced by SSDs quite quickly). There still would be

Re: say that cut can't handle more than one field demarcator

2010-03-04 Thread Pádraig Brady
On 04/03/10 20:05, jida...@jidanni.org wrote: On (info "(coreutils) cut invocation") please add: cut has no way to specify a group of blanks as a field demarcator. If you want that, use perl -a. Also use perl's split if you want regexp demarcators, etc. If that is indeed the case. A

Re: you are not going to be able to sort this by the fifth field.

2010-03-04 Thread jidanni
Thanks. I see I neglected the -b. On the info page in the `--field-separator=SEPARATOR' discussion, do mention the effects of -b on ' foo' etc. PB> $ LC_CTYPE=C sort --debug -sb -k5,5 < taichung_county_atm.htm (Use .txt, not .htms in examples.) Anyway, your --debug stuff would be clearer with just

test failures on solaris

2010-03-04 Thread Ben Walton
Hi All, I'm packaging coreutils for OpenCSW[1] to replace our (now ancient) versions of {sh,file,text}utils and have hit a few test failures I'm hoping someone can help me solve. We're still targeting solaris 8[2] for one more release, and this is where the results were gathered (sparc in this c

Re: you are not going to be able to sort this by the fifth field.

2010-03-04 Thread Eric Blake
According to jida...@jidanni.org on 3/4/2010 7:11 PM: > Thanks. I see I neglected the -b. > On the info page in the `--field-separator=SEPARATOR' discussion, do > mention the effects of -b on ' foo' etc. > PB> $ LC_CTYPE=C sort --debug -sb -k5,5 < taichung_county_atm.htm > (Use .txt, not .htms in e