Solved

Combine output of two commands on single line

Posted on 2004-04-12
2
225 Views
Last Modified: 2013-12-26
I want to combine the output of two commands on a single line. The two commands are echo and uptime and I want the output to look like:

UPTIME: 03:32PM   up 35 days,  15:54,  208 users,  load average: 0.54, 0.45, 0.52

I have tried [echo "UPTIME: " | uptime], and [echo "UPTIME: " & uptime], etc. but, cannot get it work.

Thanks,
Charles
0
Comment
Question by:nevahj
2 Comments
 
LVL 7

Accepted Solution

by:
fim32 earned 50 total points
ID: 10808001
how about:
echo uptime: `uptime`
0
 
LVL 2

Author Comment

by:nevahj
ID: 10808055
Thanks!!!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now