GNU bug report logs -
#29396
Comm bug verified
Previous Next
Reported by: Saint Michael <venefax <at> gmail.com>
Date: Wed, 22 Nov 2017 14:17:01 UTC
Severity: normal
Done: Assaf Gordon <assafgordon <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 29396-done <at> debbugs.gnu.org (full text, mbox):
(re-adding the mailing list)
Hello,
On 2017-11-22 12:39 PM, Saint Michael wrote:
> Thanks for the explanation
> Is there a place to download the source code?
> I want to compile a version that ignore spaces on the right, since 99%
> of the time I forget to check the line endings.
> or maybe you could consider a switch to the tool that would make it
> ignore traing spaces when comparing lines.
The source code for GNU coreutils is available here:
https://git.savannah.gnu.org/cgit/coreutils.git
However,
I would recommend the 'sed' method below, as a much simpler
way to remove trailing spaces (instead of maintaining a custom modified
coreutils binaries).
> To remove the trailing spaces on the file, try:
>
> $ sed 's/ *$//' file2.csv > file2-no-space.csv
>
> $ comm -12 file1.csv file2-no-space.csv | wc -l
> 864
>
> $ join file1.csv file2.csv | wc -l
> 864
regards,
- assaf
This bug report was last modified 7 years and 237 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.