Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0
On 01/08/2013 11:05 AM, Ondrej Vasik wrote:
>> $ join <(join <(cat -n one) <(cat -n two)) <(cat -n three) |\
>> sed 's/^[0-9]* *//'
>> 1 a x
>> 2 b y
>> 3 c z
>>
>> There's probably other ways of doing it, as well.
>
> Actually,
> pr -m -t -s' ' one two three
> seems to be easier to me for this case...
Awesome trick - I would have never thought of pr. Should we mention
pr(1) in the SEE ALSO of 'man join'?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature