GNU bug report logs -
#13389
echo command redhat linux OS
Previous Next
Reported by: Mohanad Azzam <mazzam.c <at> stc.com.sa>
Date: Tue, 8 Jan 2013 17:13:02 UTC
Severity: normal
Tags: notabug
Done: Bernhard Voelker <mail <at> bernhard-voelker.de>
Bug is archived. No further changes may be made.
Full log
Message #10 received at 13389-done <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 12 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.