Re: there is a bug with UNIX command join
[email protected] (Bob Proulx) Fri, 20 Jun 2003 20:48:47 -0600
| Newsgroups | gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
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