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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13389 in the body.
You can then email your comments to 13389 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#13389
; Package
coreutils
.
(Tue, 08 Jan 2013 17:13:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mohanad Azzam <mazzam.c <at> stc.com.sa>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 08 Jan 2013 17:13:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[cid:image001.jpg <at> 01CDECEE.BDCB6ED0]
www.stc.com.sa<http://www.stc.com.sa/>
Mohanad S. Azzam
Senior Technical Engineer
Content Adaptation System
Operation dept. STC-B41
Contractor-RKe Technology
P Please consider the environment before printing this e-mail.
The information in this email may contain confidential material and it is intended solely for the addresses. Access to this email by anyone else is unauthorized. If you are not the intended recipient, please delete the email and destroy any copies of it, any disclosure, copying, distribution is prohibited and may be considered unlawful. Contents of this email and any attachments may be altered, Statement and opinions expressed in this email are those of the sender, and do not necessarily reflect those of Saudi Telecommunications Company (STC).
[Message part 2 (text/html, inline)]
[image001.jpg (image/jpeg, inline)]
Reply sent
to
Bernhard Voelker <mail <at> bernhard-voelker.de>
:
You have taken responsibility.
(Tue, 08 Jan 2013 17:49:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mohanad Azzam <mazzam.c <at> stc.com.sa>
:
bug acknowledged by developer.
(Tue, 08 Jan 2013 17:49:02 GMT)
Full text and
rfc822 format available.
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
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Tue, 08 Jan 2013 17:51:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#13389
; Package
coreutils
.
(Tue, 08 Jan 2013 17:51:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 13389-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 13389 notabug
thanks
On 01/07/2013 10:57 PM, 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
Rather than attempting to describe the problem, giving us an actual
sample of three files, each containing three or so lines, as well as the
desired output you want, would go a lot further in explaining the
problem you really want solved. I will attempt to describe a setup that
I think matches the wording you gave. I created three files:
$ cat one
1
2
3
$ cat two
a
b
c
$ cat three
x
y
z
Then I can use something like this to merge those three files into a
single listing with three columns, one entry from each file:
$ 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.
At any rate, your request is more of a usage question, and not an actual
bug report. To avoid polluting the bug tracker with something that
needs no further action in coreutils, I have marked this as not a bug.
But you should still feel free to reply if you have further comments, or
can provide more details about the real problem you are trying to solve.
>
> The information in this email may contain confidential material
Unfortunately, it is now posted to a public archive, and this disclaimer
is rendered unenforceable. For better netiquette, you may want to
consider posting from a private account, rather than one where your
employer tacks on lame legalese.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#13389
; Package
coreutils
.
(Tue, 08 Jan 2013 18:07:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 13389-done <at> debbugs.gnu.org (full text, mbox):
On Tue, 2013-01-08 at 10:50 -0700, Eric Blake wrote:
> tag 13389 notabug
> thanks
>
> On 01/07/2013 10:57 PM, 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
>
> Rather than attempting to describe the problem, giving us an actual
> sample of three files, each containing three or so lines, as well as the
> desired output you want, would go a lot further in explaining the
> problem you really want solved. I will attempt to describe a setup that
> I think matches the wording you gave. I created three files:
>
> $ cat one
> 1
> 2
> 3
> $ cat two
> a
> b
> c
> $ cat three
> x
> y
> z
>
> Then I can use something like this to merge those three files into a
> single listing with three columns, one entry from each file:
>
> $ 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...
Greetings,
Ondrej
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#13389
; Package
coreutils
.
(Tue, 08 Jan 2013 18:10:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 13389-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 (application/pgp-signature, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#13389
; Package
coreutils
.
(Tue, 08 Jan 2013 18:15:02 GMT)
Full text and
rfc822 format available.
Message #24 received at 13389-done <at> debbugs.gnu.org (full text, mbox):
On Tue, 2013-01-08 at 11:09 -0700, Eric Blake wrote:
> 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'?
Maybe, might be useful for someone - though I think this is more
suitable for info documentation example/link...
Greetings,
Ondrej
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 06 Feb 2013 12:24:04 GMT)
Full text and
rfc822 format available.
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.