Link to home
Start Free TrialLog in
Avatar of nevahj
nevahj

asked on

Combine output of two commands on single line

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
ASKER CERTIFIED SOLUTION
Avatar of fim32
fim32

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nevahj
nevahj

ASKER

Thanks!!!