Combine output of two commands on single line
Posted on 2004-04-12
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.