bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: there is a bug with UNIX command join


From: Bob Proulx
Subject: Re: there is a bug with UNIX command join
Date: Fri, 20 Jun 2003 20:48:47 -0600
User-agent: Mutt/1.3.28i

Robert Wolf wrote:
> $ join -t \012 -v 2 j1 j2
> 
>  <<j1>>  <<j2>> 
> The output should be only the lines in j2 that do not exist in j1.

For one thing I am not convinced that the \012 will be doing what you
think it will be doing here.  Usually you need to handle quoted
characters like that specially with the shell.  Something like this.

  NL=$(printf "\n")
  join -t "$NL" -v 2 j1 j2

> Essentially I have two sorted files, and I just want the lines from the 2nd
> file that are not in the 1st file.

Hmm...  Perhaps you are really looking for 'comm -13 j1 j2' here?

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]