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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to