Re: [coreutils] join feature: auto-format

2010-10-07 Thread Assaf Gordon
Pádraig Brady wrote, On 10/07/2010 06:22 AM: On 07/10/10 01:03, Pádraig Brady wrote: On 06/10/10 21:41, Assaf Gordon wrote: The --auto-format feature simply builds the -o format line automatically, based on the number of columns from both input files. Thanks for persisting

Re: [coreutils] added ability in sort to skip n number of lines for each file

2010-11-22 Thread Assaf Gordon
Sorry, the command for step 5 was missing: $ sort-header -S 5M -l 1 -n input_with_header.txt | head -n 5 (When sort-header is sort from coreutils version 8.7 patched with Jim Hester's patch). On 11/22/2010 03:20 PM, Assaf Gordon wrote: Hello Jim and all, On 11/18/2010 11:36 AM, Jim

[coreutils] du/bigtime fail ( was: new snapshot available: coreutils-8.7.66-561f8)

2010-12-17 Thread Assaf Gordon
Jim Meyering wrote, On 12/17/2010 05:07 AM: Here's a preview of what should soon appear as coreutils-8.8. [...] Any testing you can perform over the weekend would be most welcome. On CentOS 5.4, du/bigtime fails (in a reproducible manner). $ uname -a Linux XX 2.6.18-164.11.1.el5 #1 SMP

[coreutils] Memory usage of parallel sort

2010-12-17 Thread Assaf Gordon
Hello, A question regarding the memory usage requirements of the parallel sort: It seems that the memory usage (resident size) increases with the number of threads used. It also seems to me (but not verified) that the increased memory usage happens not at the sorting phase, but at the output

Re: [coreutils] join feature: auto-format

2011-01-12 Thread Assaf Gordon
Pádraig Brady wrote, On 01/11/2011 07:35 AM: Spending another few minutes on this, I realized that we should not be trying to homogenize the number of fields from each file, but rather the fields used for a particular file in each line. The only sensible basis for that is the first line as

bug#7961: sort

2011-02-02 Thread Assaf Gordon
On a somewhat off-topic note, Francesco Bettella wrote, On 02/02/2011 07:42 AM: I'm issuing the following sort commands (see attached files): [prompt1] sort -k 1.4,1n asd1 asd1.sorted [prompt2] sort -k 2.4,2n asd2 asd2.sorted the first one works as I would expect, the second one

sort parameters question: -V and -f

2011-04-06 Thread Assaf Gordon
Hello, I'm wondering if this is a bug (where -f is ignored when using version sort): = $ sort --debug -f -k2,2V sort: using simple byte comparison sort: leading blanks are significant in key 1; consider also specifying `b' sort: option `-f' is ignored == My assumption is that

Re: sort parameters question: -V and -f

2011-04-07 Thread Assaf Gordon
Eric Blake wrote, On 04/06/2011 06:36 PM: On 04/06/2011 04:04 PM, Pádraig Brady wrote: On 06/04/11 22:26, Assaf Gordon wrote: I'm wondering if this is a bug (where -f is ignored when using version sort): The same happens for any ordering option. If any is specified for the key, then all

Re: uniq --accumulate

2012-02-07 Thread Assaf Gordon
Pádraig Brady wrote, On 02/07/2012 11:00 AM: On 02/07/2012 03:56 PM, Peng Yu wrote: Suppose that I have a table of the following, where the last column is a number. I'd like to accumulate the number of rows that are the same for all the remaining columns. Thanks for the suggestion, but

sort: new feature: use environment variable to set buffer size

2012-08-29 Thread Assaf Gordon
Hello, I'd like to suggest a new feature to sort: the ability to set the buffer size (-S/--buffer-size X) using an environment variable. In summary: $ export SORT_BUFFER_SIZE=20G $ someprogram | sort -k1,1 output.txt # sort will use 20G of RAM, as if --buffer-size 20G was specified. The

physmem: a new program to report memory information

2012-08-30 Thread Assaf Gordon
coreutils code. Please let me know if this is something you'd be willing to include in coreutils. Thanks, -gordon From 1eccf56a49bc0aa3f167a0fce1a65c91a92ed468 Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Thu, 30 Aug 2012 11:21:57 -0400 Subject: [PATCH] physmem: A new

Command-line program to convert 'human' sizes?

2012-12-04 Thread Assaf Gordon
Hello, Is there a command-line program (or a recommended way) to expose the coreutil's common functionality of converting raw sizes to 'human' sizes and vice versa ? I'm referring to the -h parameter that du/df/sort are accepting, and reporting human sizes, but also the reverse (where sort's

Re: Command-line program to convert 'human' sizes?

2012-12-04 Thread Assaf Gordon
Hello, Pádraig Brady wrote, On 12/04/2012 11:30 AM: On 12/04/2012 04:25 PM, Assaf Gordon wrote: Nothing yet. The plan is to make a numfmt command available with this interface: http://lists.gnu.org/archive/html/coreutils/2012-02/msg00085.html Attached is a stub for such a program

Re: Command-line program to convert 'human' sizes?

2012-12-04 Thread Assaf Gordon
Pádraig Brady wrote, On 12/04/2012 06:11 PM: On 12/04/2012 10:55 PM, Assaf Gordon wrote: Hello, Pádraig Brady wrote, On 12/04/2012 11:30 AM: Nothing yet. The plan is to make a numfmt command available with this interface: http://lists.gnu.org/archive/html/coreutils/2012-02/msg00085.html

Re: Command-line program to convert 'human' sizes?

2012-12-04 Thread Assaf Gordon
Pádraig Brady wrote, On 12/04/2012 07:31 PM: On 12/05/2012 12:19 AM, Jim Meyering wrote: Pádraig Brady wrote: On 12/04/2012 11:35 PM, Assaf Gordon wrote: Pádraig Brady wrote, On 12/04/2012 06:11 PM: On 12/04/2012 10:55 PM, Assaf Gordon wrote: Pádraig Brady wrote, On 12/04/2012 11:30 AM

Re: Command-line program to convert 'human' sizes?

2012-12-04 Thread Assaf Gordon
Hello, Pádraig Brady wrote, On 12/04/2012 11:30 AM: Nothing yet. The plan is to make a numfmt command available with this interface: http://lists.gnu.org/archive/html/coreutils/2012-02/msg00085.html Attached is a patch, with a proof-of-concept working 'numfmt'. Works: from=SI/IEC/AUTO,

Re: Command-line program to convert 'human' sizes?

2012-12-05 Thread Assaf Gordon
Hello, Attached is a working version of numfmt. The following are implemented: === Usage: ./src/numfmt [OPTIONS] [NUMBER] Reformats NUMBER(s) to/from human-readable values. Numbers can be processed either from stdin or command arguments. --from=UNIT Auto-scale input numbers to UNITs.

Re: Command-line program to convert 'human' sizes?

2012-12-05 Thread Assaf Gordon
Assaf Gordon wrote, On 12/05/2012 06:13 PM: Attached is a working version of numfmt. Somewhat related: How do I add a rule to build the man page (I'm working on passing 'make syntax-check'). I've added the following line to 'man/local.mk': man/numfmt.1:src/numfmt But it doesn't get

Re: Command-line program to convert 'human' sizes?

2012-12-05 Thread Assaf Gordon
On 12/05/12 19:58, Jim Meyering wrote: Assaf Gordon wrote: Somewhat related: How do I add a rule to build the man page (I'm working on passing 'make syntax-check'). I've added the following line to 'man/local.mk': man/numfmt.1:src/numfmt But it doesn't get build (after bootstrap

Re: Command-line program to convert 'human' sizes?

2012-12-05 Thread Assaf Gordon
On 12/05/12 20:49, Assaf Gordon wrote: On 12/05/12 19:58, Jim Meyering wrote: Assaf Gordon wrote: Somewhat related: How do I add a rule to build the man page (I'm working on passing 'make syntax-check'). You'll have to add numfmt to the list of programs in build-aux/gen-lists-of-programs.sh

Re: Command-line program to convert 'human' sizes?

2012-12-05 Thread Assaf Gordon
Hello, With the attached patch, numfmt passes make syntax-check and almost passes make check and make distcheck. Regarding the checks: tests/misc/numfmt.pl passes all tests successfully. But: 1. When running make check, tests/df/total-verify.sh fails, so the check isn't complete. 2. When

Suggestion: update README/HACKING regarding tests

2012-12-05 Thread Assaf Gordon
As per: http://lists.gnu.org/archive/html/coreutils/2012-09/msg00144.html , Perhaps you'll agree to update README/HACKING about how to run individual tests: === diff --git a/HACKING b/HACKING index de8cd7b..01e7605 100644 --- a/HACKING +++ b/HACKING @@ -438,9 +438,11 @@ Nearly every significant

Re: Command-line program to convert 'human' sizes?

2012-12-07 Thread Assaf Gordon
Thank you for your feedback. I'm working on fixing those issues. Some comments/questions: Pádraig Brady wrote, On 12/06/2012 06:59 PM: I noticed This command will core dump: $ /bin/ls -l | src/numfmt --to-unit=1 --field=5 snip so I'm thinking `numfmt` should support --header too. I'll add

git format-patch question

2012-12-11 Thread Assaf Gordon
Hello, (picking up from a different thread) Pádraig Brady wrote, On 12/06/2012 06:59 PM: Generally it's best to get git to send email or send around formats that git can apply directly, which includes commit messages and references new files etc. The handiest way to do that is: git

Adding tests for non-C locales

2012-12-11 Thread Assaf Gordon
Hello, I want to add tests for non-C locales (to check grouping in numfmt). My test script is written in Perl, based on tests/misc/wc.pl . It starts with: === @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3; === Which is fine for most of the tests. How do I add tests for non-C locale, in a safe

numfmt: locale/grouping input issue

2012-12-11 Thread Assaf Gordon
Hello, (Continuing a previously discussed issue - accepting input values with locale grouping separators) Pádraig Brady wrote, On 12/07/2012 01:09 PM: On 12/07/2012 03:07 PM, Assaf Gordon wrote: Another thing I thought of there, was it would be good to be able to parse number formats

numfmt (=print 'human' sizes) updates

2012-12-12 Thread Assaf Gordon
Hello, Attached is an updated version of 'numfmt' . (The patch should be compatible with git am). Most of the previously raised issues have been addressed, except handling locale'd grouping in the input numbers (locale'd decimal-point is handled correctly). Added support for header,

[PATCH] two minor tweaks to HACKING

2012-12-13 Thread Assaf Gordon
: Assaf Gordon assafgor...@gmail.com Date: Thu, 13 Dec 2012 11:42:01 -0500 Subject: [PATCH 1/2] doc: mention git stash in HACKING --- HACKING |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/HACKING b/HACKING index f3f961a..84e9707 100644 --- a/HACKING +++ b/HACKING @@ -120,6

Re: numfmt (=print 'human' sizes) updates

2012-12-13 Thread Assaf Gordon
Hello, Attached is a slightly improved patch - minor code changes, and many more tests. Line coverage is 98%, and branch coverage is now 93% , and most of the non-covered branches are simply unreachable (I'm checking the reachable ones). The comments below still apply. - gordon Assaf Gordon

Re: [PATCH 2/2] doc: tweak 'lcov' in HACKING

2012-12-14 Thread Assaf Gordon
Hello Bernhard, Bernhard Voelker wrote, On 12/14/2012 03:29 AM: splitting the discussion about the 2 patches ... On 12/13/2012 08:29 PM, Assaf Gordon wrote: [...] The second changes parameters for 'lcov' example - the current parameters produce wrong output (the source files are not found

[PATCH] maint: ignore GCC coverage files

2012-12-14 Thread Assaf Gordon
eb54c8adf123481f3231aeb40e1b4ff38288b9af Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Fri, 14 Dec 2012 13:27:26 -0500 Subject: [PATCH] maint: update gitignore entries * .gitignore: ignore GCC coverage data files. --- .gitignore |2 ++ 1 files changed, 2 insertions

Re: [PATCH] doc: mention git stash in HACKING

2012-12-14 Thread Assaf Gordon
Bernhard Voelker wrote, On 12/14/2012 03:29 AM: On 12/13/2012 08:29 PM, Assaf Gordon wrote: [PATCH 1/2] doc: mention git stash in HACKING I tweaked the commit message a bit: even if the change is trivial and the subject is HACKING, it's good practice to mention it in a line below which

Re: enhancement suggestions for sort and text editor

2012-12-14 Thread Assaf Gordon
Hello John, Eric Blake wrote, On 12/14/2012 04:19 PM: On 12/14/2012 02:02 PM, john wrote: In particular I wish to enter text into predefined (fixed location) fields in a record as opposed to variably delimited fields. In other words emulate the punched card record where card columns are

Re: numfmt (=print 'human' sizes) updates

2012-12-18 Thread Assaf Gordon
Hello, Attached is a first shot at documenting 'numfmt' . Comments are welcomed, -gordon numfmt_doc.patch.gz Description: GNU Zip compressed data

Re: numfmt (=print 'human' sizes) updates

2012-12-21 Thread Assaf Gordon
Hello Pádraig, Thanks for the review and the feedback. Pádraig Brady wrote, On 12/21/2012 12:42 PM: It's looking like a really useful cohesive command. The attached patch addresses the following issues: 1. changed the ---devdebug option 2. incorporated most of 'indent -nut'

Re: numfmt (=print 'human' sizes) updates

2012-12-26 Thread Assaf Gordon
Hello, Pádraig Brady wrote, On 12/21/2012 12:42 PM: I'm starting to think the original idea of having a --format option would be more a more concise, well known and extendible interface rather than having --padding, --grouping, --base, ... It wouldn't have to be passed directly to printf,

Re: numfmt (=print 'human' sizes) updates

2012-12-26 Thread Assaf Gordon
Hello, Attached is an updated numfmt, with the following two changes: 1. --format support 2. optionally ignoring input errors. Regarding output format: I've implemented a limited subset of the functionality: it supports only format strings with the syntax %['][-][N]f (while of course allowing

Re: numfmt (=print 'human' sizes) updates

2012-12-27 Thread Assaf Gordon
Hello, Assaf Gordon wrote, On 12/26/2012 05:40 PM: Attached is an updated numfmt, with the following two changes: 1. --format support 2. optionally ignoring input errors. The attached patch (incremental to the above full patch) adds few more tests, and fixes 4 issues found with the clang

Re: numfmt (=print 'human' sizes) updates

2013-01-08 Thread Assaf Gordon
Hello, The attached patch adds 'numfmt' to the coreutils documentation. Regards, -gordon numfmt.12.patch.xz Description: application/xz

Re: Sort with header/skip-lines support

2013-01-11 Thread Assaf Gordon
Pádraig Brady wrote, On 01/10/2013 07:11 PM: On 01/10/2013 09:57 PM, Assaf Gordon wrote: I'd like to re-visit an old issue: adding header-line/skip-lines support to 'sort'. [...] [2] - no pipe support: http://lists.gnu.org/archive/html/bug-coreutils/2007-07/msg00215.html But recent

Re: Sort with header/skip-lines support

2013-01-11 Thread Assaf Gordon
Hello Pádraig, Your suggestions work for all the cases I needed, so essentially there's already a way to do sort+header - much appreciated! Pádraig Brady wrote, On 01/11/2013 01:13 PM: On 01/11/2013 04:10 PM, Assaf Gordon wrote: Pádraig Brady wrote, On 01/10/2013 07:11 PM: The following

Re: Enhancement suggestion for expand

2013-01-14 Thread Assaf Gordon
Hello, Anoop Sharma wrote, On 01/14/2013 04:58 AM: On Mon, Jan 14, 2013 at 5:04 AM, Pádraig Brady p...@draigbrady.com mailto:p...@draigbrady.com wrote: On 09/18/2012 03:18 PM, CoreUtils subscribtion for PLC wrote: I oten use expand to format scripts output by manually setting

Sort: optimal memory usage with multithreaded sort

2013-01-15 Thread Assaf Gordon
Hello, Sort's memory usage (specifically, sort_buffer_size() ) has been discussed few times before, but I couldn't find mention of the following issue: If given a regular input file, sort tries to guesstimate the optimal buffer size based on the file size. But this value is calculated for one

[PATCH] numfmt: fix help section typo

2013-02-05 Thread Assaf Gordon
:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Tue, 5 Feb 2013 11:04:41 -0500 Subject: [PATCH] numfmt: fix help section typo * src/numfmt.c: change erroneous G to M. --- src/numfmt.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/numfmt.c b/src

csplit - split by content of field

2013-02-06 Thread Assaf Gordon
(awk comes to mind), but it won't be as simple and clean (with all of csplit's output features). Let me know if you're willing to consider such addition. Thanks, -gordon From 074614c0764c278e8abd9d41af4ce626fefd6cfc Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Wed, 6

uniq - check specific fields

2013-02-07 Thread Assaf Gordon
/msg00015.html From 08ee89a89d6912c5872a1785b9079d943ad71623 Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Thu, 7 Feb 2013 11:46:22 -0500 Subject: [PATCH] uniq: support uniq-by-field src/uniq.c: add --field and --check-fields=N support --- src/uniq.c | 68

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Assaf Gordon
Hello Bernhard, Bernhard Voelker wrote, On 02/08/2013 09:53 AM: On February 7, 2013 at 8:57 PM Pádraig Brady p...@draigbrady.com wrote: coreutils snapshot: http://pixelbeat.org/cu/coreutils-8.20.113-1f1f4.tar.xz Hi Padraig, * SLES-10.4 (x86_64): gcc (GCC) 4.1.2 20070115 (SUSE

Re: new snapshot available: coreutils-8.20.113-1f1f4

2013-02-08 Thread Assaf Gordon
Thanks for the quick fix. Bernhard Voelker wrote, On 02/08/2013 11:02 AM: On February 8, 2013 at 4:56 PM Pádraig Brady p...@draigbrady.com wrote: OK so we can't assume the locale will behave as we want. Therefore we can gate the test on the output of the independent printf like: PASS:

Re: new snapshot available: coreutils-8.20.119-54cdb0

2013-02-11 Thread Assaf Gordon
Strange failure with numfmt on an eccentric system (Mac OS X 10.6.8): some errors are not reported correctly. === FAIL: tests/misc/numfmt === ... snip ... numfmt.pl: test fmt-err-3: stderr mismatch, comparing fmt-err-3.1 (expected) and fmt-err-3.E (actual) *** fmt-err-3.1

Re: new snapshot available: coreutils-8.20.119-54cdb0

2013-02-11 Thread Assaf Gordon
Follow-up: Assaf Gordon wrote, On 02/11/2013 12:27 PM: Strange failure with numfmt on an eccentric system (Mac OS X 10.6.8): some errors are not reported correctly. [ ... ] In the source code, it seems to be related to this part, in parse_format_string(), line 972: 970 i += strspn

Re: new snapshot available: coreutils-8.20.119-54cdb0

2013-02-11 Thread Assaf Gordon
Assaf Gordon wrote, On 02/11/2013 12:35 PM: Assaf Gordon wrote, On 02/11/2013 12:27 PM: Strange failure with numfmt on an eccentric system (Mac OS X 10.6.8): some errors are not reported correctly. [ ... ] And 'strtol' returns errno=EINVAL (22) instead of 0 - causing the incorrect

uniq with sort-like --key support

2013-02-11 Thread Assaf Gordon
Hello, I'd like to offer a proof-of-concept patch for adding sort-like --key support for the 'uniq' program, as discussed here: http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00211.html and in several other threads. The patch involves few core changes: 1. All key-related functions

Re: new snapshot available: coreutils-8.20.119-54cdb0

2013-02-11 Thread Assaf Gordon
On Feb 11, 2013, at 20:32, Pádraig Brady p...@draigbrady.com wrote: On 02/11/2013 08:47 PM, Assaf Gordon wrote: - if (errno != 0) + /* EINVAL can happen if 'base' is invalid (hardcoded as 10, so can't happen), + or if no conversion was performed (on some platforms). Ignore continue

[PATCH]: uniq: add tests for --ignore-case

2013-02-12 Thread Assaf Gordon
acceptable. -gordon From c8cec42eee16f3824635a3ba93b9360b2e7b236d Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Tue, 12 Feb 2013 10:30:25 -0500 Subject: [PATCH] tests: add '--ignore-case' tests for uniq. * tests/misc/uniq.pl: add tests for --ignore-case. --- tests/misc

Re: uniq with sort-like --key support

2013-02-12 Thread Assaf Gordon
Pádraig Brady wrote, On 02/11/2013 08:50 PM: On 02/12/2013 01:31 AM, Assaf Gordon wrote: I'd like to offer a proof-of-concept patch for adding sort-like --key support for the 'uniq' program, as discussed here: http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00211.html

Re: uniq with sort-like --key support

2013-02-13 Thread Assaf Gordon
On 02/12/2013 01:31 AM, Assaf Gordon wrote: I'd like to offer a proof-of-concept patch for adding sort-like --key support for the 'uniq' program, as discussed here: http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00211.html and in several other threads. One more update

Re: uniq with sort-like --key support

2013-02-13 Thread Assaf Gordon
Assaf Gordon wrote, On 02/13/2013 11:45 AM: On 02/12/2013 01:31 AM, Assaf Gordon wrote: I'd like to offer a proof-of-concept patch for adding sort-like --key support for the 'uniq' program, as discussed here: http://lists.gnu.org/archive/html/bug-coreutils/2006-06/msg00211.html

Re: uniq with sort-like --key support

2013-02-13 Thread Assaf Gordon
Hello Jim, Jim Meyering wrote, On 02/13/2013 12:05 PM: Assaf Gordon wrote: Assaf Gordon wrote, On 02/13/2013 11:45 AM: ... One more update with two changes: ... src/uniq_sort_common.h | 1096 Hi Gordon. Thanks a lot for working

Re: uniq with sort-like --key support

2013-02-13 Thread Assaf Gordon
Jim Meyering wrote, On 02/13/2013 12:05 PM: [...] but please change the name of that new header file. First, we use hyphens (not underscores) in file names. Did you consider any names that evoke key spec parsing? Then, the name would still be apropos if someday it's used by a program other

Re: uniq with sort-like --key support

2013-02-13 Thread Assaf Gordon
Pádraig Brady wrote, On 02/13/2013 12:54 PM: On 02/13/2013 05:34 PM, Assaf Gordon wrote: What would be the recommended way to compartmentalize this functionality? 1. put it in src/key-spec-parsing.h, and have each program (e.g. uniq.c) do #include ? or 2. split it into src/key-spec

[PATCH] join: Add -z option

2013-02-14 Thread Assaf Gordon
it there. From 525eb72b150ed34d3bfcfe453d1494fe28a824b7 Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Thu, 14 Feb 2013 15:29:08 -0500 Subject: [PATCH] join: Add -z option * NEWS: Mention join's new option: --zero-terminated (-z). * src/join.c: Add new option, --zero-terminated (-z

sort/uniq/join: key-comparison code consolidation

2013-02-14 Thread Assaf Gordon
Hello, ( new thread for previous topic http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html ) . The attached patch contains: 1. src/key-spec-parsing.{h,c} - key comparison code, previously in sort.c 2. uniq - now supports --key (multiple keys, too). Same as before, but

Re: [PATCH]: uniq: add --group option

2013-02-21 Thread Assaf Gordon
Hello Pádraig, Pádraig Brady wrote, On 02/20/2013 08:47 PM: On 02/20/2013 06:44 PM, Assaf Gordon wrote: Hello, Attached is a suggestion for --group option in uniq, as discussed here: http://lists.gnu.org/archive/html/coreutils/2011-03/msg0.html http://lists.gnu.org/archive/html

Re: [PATCH]: uniq: add --group option

2013-02-21 Thread Assaf Gordon
Pádraig Brady wrote, On 02/21/2013 11:11 AM: On 02/21/2013 03:42 PM, Assaf Gordon wrote: Hello Pádraig, Pádraig Brady wrote, On 02/20/2013 08:47 PM: On 02/20/2013 06:44 PM, Assaf Gordon wrote: Hello, Attached is a suggestion for --group option in uniq, as discussed here: http

Re: [PATCH]: uniq: add --group option

2013-02-21 Thread Assaf Gordon
Assaf Gordon wrote, On 02/21/2013 11:37 AM: You were planning on --group to mean explicitly output all input lines, and add group-markers for unique groups (meaning -u/-d/-D and --group are mutually exclusive). Attached is a version that behaves as previously discussed. --group can't

[PATCH] improve 'autotools-install'

2013-02-21 Thread Assaf Gordon
/tree/README?id=pkg-config-0.27.1 [2] http://bugs.gnu.org/13495 From ba2c30e47e808c60bd5e899caca1207dae5aa95a Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Thu, 21 Feb 2013 17:50:28 -0500 Subject: [PATCH 1/2] maint: print errors with autotools-install fails * scripts

Re: [PATCH] improve 'autotools-install'

2013-02-22 Thread Assaf Gordon
Hello Stefano, Stefano Lattarini wrote, On 02/22/2013 02:30 AM: On 02/22/2013 12:08 AM, Assaf Gordon wrote: I think this explanation should go in the commit message of the second patch, as it makes clear why such patch is needed. Good idea, attached an improved patch. Sadly, autotools

Re: bug#13786: pr command does not fold

2013-02-22 Thread Assaf Gordon
(Adding the list) Doh Smith wrote, On 02/22/2013 05:14 AM: I could not get the pr command to fold the lines. Is this a bug? I replied but forgot to CC the mailing list, answer available here: http://bugs.gnu.org/13786 This bug can likely be closed, if others agree. -gordon

Re: coreutils FAQ link in manpages and/or --help output

2013-02-25 Thread Assaf Gordon
Hi, Bernhard Voelker wrote, On 02/25/2013 10:58 AM: On 02/25/2013 03:53 PM, Ondrej Oprala wrote: to reduce the amount of questions about date, sort and anything multibyte-related, I think it'd be a good idea to add a link to the coreutils FAQ to the man pages (and/or --help output), maybe

Re: coreutils FAQ link in manpages and/or --help output

2013-02-25 Thread Assaf Gordon
Philipp Thomas wrote, On 02/25/2013 01:18 PM: Am 25.02.13 19:07, schrieb Pádraig Brady: $ truncate --help | tail -n4 GNU coreutils online help: http://www.gnu.org/software/coreutils/#help For complete documentation, run: info coreutils 'truncate invocation' Then the online help section can

Re: [PATCH]: uniq: add --group option

2013-02-28 Thread Assaf Gordon
Pádraig Brady wrote, On 02/27/2013 08:16 PM: On 02/21/2013 07:40 PM, Assaf Gordon wrote: Assaf Gordon wrote, On 02/21/2013 11:37 AM: You were planning on --group to mean explicitly output all input lines, and add group-markers for unique groups (meaning -u/-d/-D and --group are mutually

Re: [PATCH]: uniq: add tests for --ignore-case

2013-02-28 Thread Assaf Gordon
Pádraig Brady wrote, On 02/27/2013 10:38 PM: On 02/12/2013 03:44 PM, Assaf Gordon wrote: I noticed that by running the default test suite (make check SUBDIRS=.), the majority of uniq tests are skipped: uniq: skipping this test -- no appropriate locale SKIP: tests/misc/uniq.pl PASS

Re: sort/uniq/join: key-comparison code consolidation

2013-02-28 Thread Assaf Gordon
Hello, Assaf Gordon wrote, On 02/14/2013 06:07 PM: ( new thread for previous topic http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html ) . Attached is the sort/uniq/join key-comparison patch, rebased against the latest revision. This patch should also be cleaner and the commit

Re: coreutils FAQ link in manpages and/or --help output

2013-03-01 Thread Assaf Gordon
Pádraig Brady wrote, On 02/28/2013 08:12 AM: On 02/28/2013 08:40 AM, Ondrej Vasik wrote: On Thu, 2013-02-28 at 09:26 +0100, Bernhard Voelker wrote: On February 28, 2013 at 4:23 AM Pádraig Brady p...@draigbrady.com wrote: I've adjusted the above to only reference online resources, and ensure

[PATCH] shuf: use reservoir-sampling when possible

2013-03-06 Thread Assaf Gordon
b64d5063e26c0f3485d8342a2d5501f655f1063e Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Wed, 6 Mar 2013 18:25:49 -0500 Subject: [PATCH] shuf: use reservoir-sampling when possible * src/shuf.c: Use reservoir-sampling when the number of output lines is known (by using '-n X

Re: [PATCH] shuf: use reservoir-sampling when possible

2013-03-07 Thread Assaf Gordon
Hello, Attached is an updated version. Pádraig Brady wrote, On 03/06/2013 08:24 PM: On 03/06/2013 11:50 PM, Assaf Gordon wrote: Attached is a suggestion to implement reservoir-sampling in shuf: When the expected output of lines is known, it will not load the entire file into memory

[PATCH] csplit: new option --suppress-matched

2013-03-07 Thread Assaf Gordon
(suggestions are welcomed). Regards, -gordon From 49f43214ebfa41fa1f67e7001d8467288ff34837 Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Wed, 6 Mar 2013 15:53:16 -0500 Subject: [PATCH] csplit: new option, --suppress-matched FIXME: Currently works only with REGEXP patterns

[PATCH] tests: test sort,shuf with rngtest

2013-03-08 Thread Assaf Gordon
Hello, Regarding comment: Pádraig Brady wrote, On 03/07/2013 06:26 PM: On 03/07/2013 07:32 PM, Assaf Gordon wrote: The second attached patch is experimental - it tries to assess the randomness of 'shuf' output by running it 1,000 times and checking if the output is (very roughly) uniformly

Re: [PATCH] shuf: use reservoir-sampling when possible

2013-03-11 Thread Assaf Gordon
Hello, Pádraig Brady wrote, On 03/07/2013 06:26 PM: On 03/07/2013 07:32 PM, Assaf Gordon wrote: Pádraig Brady wrote, On 03/06/2013 08:24 PM: On 03/06/2013 11:50 PM, Assaf Gordon wrote: Attached is a suggestion to implement reservoir-sampling in shuf: When the expected output of lines

Re: [PATCH] shuf: use reservoir-sampling when possible

2013-03-25 Thread Assaf Gordon
Hello Pádraig, Pádraig Brady wrote, On 03/24/2013 11:45 PM: On 03/06/2013 11:50 PM, Assaf Gordon wrote: Attached is a suggestion to implement reservoir-sampling in shuf: When the expected output of lines is known, it will not load the entire file into memory - allowing shuffling very large

Re: [PATCH] tests: test sort,shuf with rngtest

2013-03-26 Thread Assaf Gordon
Assaf Gordon wrote, On 03/08/2013 04:28 PM: Pádraig Brady wrote, On 03/07/2013 06:26 PM: Cool, I was considering testing with rngtest or something, so it'll be good to have something independent. ( http://lists.gnu.org/archive/html/coreutils/2013-03/msg00030.html ) Using rngtest

Re: [PATCH] csplit: new option --suppress-matched

2013-03-28 Thread Assaf Gordon
Hello, Assaf Gordon wrote, On 03/07/2013 05:39 PM: Attached is a new option for csplit, suppress-matched, as been mentioned few times before (e.g. http://lists.gnu.org/archive/html/coreutils/2013-02/msg00170.html ). Attached updated version (works with both regexp and int patterns

Re: [PATCH] csplit: new option --suppress-matched

2013-03-30 Thread Assaf Gordon
On 03/30/13 01:08, Pádraig Brady wrote: On 03/28/2013 10:10 PM, Assaf Gordon wrote: Attached is a new option for csplit, suppress-matched, as been mentioned few times before (e.g. http://lists.gnu.org/archive/html/coreutils/2013-02/msg00170.html ). The awkward case here is with integer

[PATCH] tests: document CMP/PRE/POST in unit test module

2013-04-01 Thread Assaf Gordon
Hello, Attached is a small patch to document CMP/PRE/POST in tests/Coreutils.pm. No code changes. -gordon From 229c94ebc0c4955a418f6e7348488d9ca28dc593 Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Mon, 1 Apr 2013 17:44:27 -0400 Subject: [PATCH] tests: document CMP/PRE

Re: [PATCH] tests: document CMP/PRE/POST in unit test module

2013-04-02 Thread Assaf Gordon
. Do you like to document these, too? I've added IN and IN_PIPE. EXIT was already mentioned. AUX - I do not know what it does... -gordon From 309fd6398558b6e85ae2b2fa1cee6b5e2f492dde Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Mon, 1 Apr 2013 17:44:27 -0400 Subject

Re: Move Command Feature

2013-04-05 Thread Assaf Gordon
Hello Michael, Michael Boldischar wrote, On 04/05/2013 01:56 PM: My first attempt with rsync resulted in the same problem I have when there are errors using the mv command: $ mkdir a b $ touch a/1.txt a/2.txt $ chmod 000 a/2.txt $rsync -r --remove-source-files a/ b/ rsync: send_files

Re: sort/uniq/join: key-comparison code consolidation

2013-04-10 Thread Assaf Gordon
Hello, Assaf Gordon wrote, On 02/28/2013 06:08 PM: Assaf Gordon wrote, On 02/14/2013 06:07 PM: ( new thread for previous topic http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html ) . Attached is the sort/uniq/join key-comparison patch, rebased against the latest revision

Re: [PATCH] csplit: new option --suppress-matched

2013-04-10 Thread Assaf Gordon
Hello, Pádraig Brady wrote, On 04/10/2013 07:49 AM: On 03/28/2013 10:10 PM, Assaf Gordon wrote: Attached is a new option for csplit, suppress-matched, as been mentioned few times before (e.g. http://lists.gnu.org/archive/html/coreutils/2013-02/msg00170.html ). ... Note I've removed

Re: sort/uniq/join: key-comparison code consolidation

2013-04-17 Thread Assaf Gordon
Assaf Gordon wrote, On 04/10/2013 01:49 PM: ( new thread for previous topic http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html ) . Another update, rebased against the latest version. comments are welcomed, -gordon key-comapre.2013-04-17.patch.xz Description: application

Re: sort/uniq/join: key-comparison code consolidation

2013-07-04 Thread Assaf Gordon
Regarding previously discussed topic: http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html Attached is another update, rebased against the latest version. comments are welcomed, -gordon key-comapre.2013-07-02.patch.xz Description: application/xz

Generate random numbers with shuf

2013-07-04 Thread Assaf Gordon
Comments are welcomed, -gordon From 12ca3d6d5b8591e7bd424ff264b9f26cc2f31b90 Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Thu, 4 Jul 2013 14:40:15 -0600 Subject: [PATCH 0/4] *** SUBJECT HERE *** *** BLURB HERE *** Assaf Gordon (4): shuf: add --repetition to generate

Re: Generate random numbers with shuf

2013-07-05 Thread Assaf Gordon
Hello, On 07/04/2013 05:40 PM, Pádraig Brady wrote: On 07/04/2013 09:41 PM, Assaf Gordon wrote: Regarding old discussion here: http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html Attached is a patch with adds --repetition option to shuf, enabling random number generation

Re: Generate random numbers with shuf

2013-07-05 Thread Assaf Gordon
On 07/05/2013 12:12 PM, Pádraig Brady wrote: On 07/05/2013 07:04 PM, Assaf Gordon wrote: Hello, Regarding old discussion here: http://lists.gnu.org/archive/html/coreutils/2011-02/msg00030.html Attached is a patch with adds --repetition option to shuf, enabling random number generation

Re: Generate random numbers with shuf

2013-07-10 Thread Assaf Gordon
On 07/10/2013 09:20 AM, Pádraig Brady wrote: I've split to two patches. 1. Unrelated test improvements. 2. All the rest ... Note in both patches I made adjustments to the tests [...] ... I.E. avoid cat unless needed, and paste is more general than fmt in this usage. ... Also I

Re: bug#15077: Clarification

2013-08-12 Thread Assaf Gordon
(CC'ing the list so that others could comment) Hello Federico, On 08/12/2013 06:50 PM, CDR wrote: How do I get latest, latest version, even beta, or join, sort, etc? I would not recommend using beta or development versions of GNU coreutils for production code, just to be on the safe side.

Re: sort/uniq/join: key-comparison code consolidation

2013-09-20 Thread Assaf Gordon
Hello, Regarding previously discussed topic: http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html Attached is another update, rebased against the latest version. comments are welcomed, -gordon key-compare-2013-09-20.patch.xz Description: application/xz

Re: Shuf reservoir sampling

2014-01-23 Thread Assaf Gordon
Hello, (reviving an old thread, sorry for the delayed response). On 12/28/2013 03:36 PM, Jyothis V wrote: ... Hi, thanks for the reply. I understand why something like reservoir sampling is needed. But in shuf.c, shuffling is done in two steps: 1) using reservoir sampling, an array of length

Re: sort/uniq/join: key-comparison code consolidation

2014-01-23 Thread Assaf Gordon
Hello, If there is still interest, here's an updated patch, against the latest version, of adding these features to join+uniq: http://lists.gnu.org/archive/html/coreutils/2013-02/msg00082.html The patch has been re-created (not just rebased), because the old one caused few conflicts.

script suggestion: 'check_program' to easily run multiple tests

2014-01-24 Thread Assaf Gordon
+1,70 @@ +#!/bin/sh +# A small helper script to run multiple tests at once. +# example: +# ./scripts/check_program sort +# would run all 'sort' related tests under ./tests/ + +# Written by Assaf Gordon + +# allow the user to override 'make' +MAKE=${MAKE-make} + +VERSION='2014-01-24 00:37:51' # UTC

stat: clarify mtime vs ctime [patch]

2014-04-21 Thread Assaf Gordon
# Show Last Access time with 'ls -u' $ ls --full-time -log -u test.txt -rw-r- 1 12 2014-04-21 14:01:15.298241904 + test.txt Regards, -gordon From 4cf4784aafdf45fd3dec3855b9320d72dcd1a6ec Mon Sep 17 00:00:00 2001 From: Assaf Gordon assafgor...@gmail.com Date: Mon, 21 Apr 2014 14:31

  1   2   3   4   5   6   7   8   9   10   >