[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: join ?
From: |
Andreas Schwab |
Subject: |
Re: join ? |
Date: |
Fri, 17 Oct 2008 13:13:14 +0200 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux) |
address@hidden writes:
> I have the following question about the join command. I thought join would
> merge the columns of different files when the same index or value is
> present in the specified columns.
The input must be sorted on the join filed.
> For example, I created the following files:
> echo 84 150 | gawk '{for (i=$1;i<=$2;i++) printf "%i %s\n", i,"A"}' >
$ echo 84 150 | gawk '{for (i=$1;i<=$2;i++) printf "%i %s\n", i,"A"}' | sort -c
-k 1b,1
sort: -:17: disorder: 100 A
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- join ?, Maarten . Vanneste, 2008/10/17
- Re: join ?,
Andreas Schwab <=
- Re: join ?, Eric Blake, 2008/10/17