[Top][All Lists]

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

Re: incorrect output from JOIN

From: Jim Meyering
Subject: Re: incorrect output from JOIN
Date: Fri Dec 6 07:07:01 2002

Barry Gould <address@hidden> wrote:
> I'm a bit confused as I would have assumed that if both files were
> sorted in the same manner, then join shouldn't have any reason to have
> trouble with them.

Thanks for the report, but that's the way it's required to work.
Join requires that both inputs be sorted (a la `sort -b') on the field
on which you're joining.  The manual says this (note the last sentence below):

     `join' writes to standard output a line for each pair of input lines
  that have identical join fields.  Synopsis:

       join [OPTION]... FILE1 FILE2

     Either FILE1 or FILE2 (but not both) can be `-', meaning standard
  input.  FILE1 and FILE2 should be sorted on the join fields.

reply via email to

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