bug-coreutils
[Top][All Lists]
Advanced

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

bug#13389: echo command redhat linux OS


From: Bernhard Voelker
Subject: bug#13389: echo command redhat linux OS
Date: Tue, 08 Jan 2013 18:47:50 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0

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

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