[Trisquel-users] Re : The join command is missing the IPv4 addresses in long mixed lists of strings

lcerf at dcc.ufmg.br lcerf at dcc.ufmg.br
Fri Jul 5 03:43:16 CEST 2019


'join' takes as input two (paths to) text files.  It does not matter what  
that text is.  It does not know what an IP address is, because it does not  
need to.  Attach the two text files you are joining, if you want us to take a  
look.

Forget about the size of the input data: 'join', like any GNU text-processing  
command can process arbitrarily long inputs.  The problem is not there.  The  
problem is almost certainly that the files are not sorted (with the 'sort'  
command and the same locale) w.r.t. their join fields. Have you read 'info  
join'?

Additional remarks:

Writing "-1 1 -2 1" is like writing nothing, because 1 is the default value  
for both options.
You certainly do *not* want to use --nocheck-order, to be warned if the files  
are not ordered w.r.t. their join fields.
You probably want to redirect the sole standard output (with ">") instead of  
both the standard and the error output (with "&>"), to have errors/warnings  
(such as one about a misordered file) appearing in the terminal.



More information about the Trisquel-users mailing list