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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER