Re: Join separator field

Samuel GRANJEAUD <[email protected]> Fri, 13 Jan 2006 16:03:55 +0100
Newsgroups gmane.comp.gnu.core-utils.bugs,gmane.comp.gnu.textutils.bugs
Organization INSERM - ERM206
Message-ID <[email protected]>
Hello !

Many thanks for your answer.

Eric Blake wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>The fact that you mailed the obsolete bug-textutils instead of the current
>bug-coreutils makes me think that your installation is out of date.  The
>current stable version of coreutils is 5.93.  You should consider
>upgrading your installation (since you mentioned cygwin, you may also want
>to consider asking the cygwin AT cygwin DOT com mailing list for help in
>your upgrade process).
>  
>
I used in fact the core-utils 5.93.0-9 of cygwin, ans it is up to date.
bash-3.00$ join --version
join (GNU coreutils) 5.3.0
Written by Mike Haertel.

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

>You didn't quote the backslash, so join was behaving as if it were called
>with "join -j 1 -t 011 aa.text bb.txt".  Had you really wanted joint to
>see \011, you should have used "-t '\011'".  But even then, older versions
>of join just silently used the first character (giving the effect of -t
>0), and 5.93 now complains when multiple characters are present:
>join: multi-character tab `011'.
>  
>
I wanted to use the tab character and thought that the octal code would 
be the right solution beacuse I didn't think of putting it in a file.

I tried to quote the octal code on the command line, but join gives me 
no answer (as you explained it), even not an error code of multiple 
characters. I didn't even get this error with "011".

Nevertheless, I successfully join my files with [ctrl-v][tab] in "" or ''.
Thank for that solution. I should have think of it and not bore you.

Cheers,
--Samuel