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


_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils

Reply via email to