tag 13389 notabug
thanks

On 01/08/2013 06:57 AM, Mohanad Azzam wrote:
> Dears
> 
> Could we print values to be as three column ,each column present the values 
> of each file.
> 
> More explanation :
> I have three files ,each file include a queue of values .I need to print all 
> the values by one command to be in one page
> 
> Thanks

Without a sample of your data, this sounds like you
want to use join.

Given you have the 3 files X, Y and Z with the following content:

  $ cat X
  1 x1
  2 x2
  3 x3

  $ cat Y
  1 y1
  2 y2
  3 y3

  $ cat Z
  1 z1
  2 z2
  3 z3

If you don't have the line numbers, then you can easily
create them with e.g. "cat -n X".

Then you can join X and Y (column 1 will be the key),
and join the result (indicated by stdin "-") with Z:

  $ join X Y | join - Z
  1 x1 y1 z1
  2 x2 y2 z2
  3 x3 y3 z3

Have a nice day,
Berny



Reply via email to