LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   (Formatting)new Column adding (https://www.linuxquestions.org/questions/linux-newbie-8/formatting-new-column-adding-804677/)

pinga123 04-28-2010 01:12 AM

(Formatting)new Column adding
 
Hi guys i have a variable called hostname which contains hostname of my machine.
How would i add the hostname to output of other command .
For eg.
if a output of command is .
command : xm list
Quote:

abc 123 334
bcd 223 333
ddd 333 333
How would i add hostname column to it.
My output should look like
Quote:

abc 123 334 hostname
bcd 223 333 hostname
ddd 333 333 hostname
Thanks

grail 04-28-2010 01:17 AM

What have you tried?


All times are GMT -5. The time now is 04:11 PM.