I have 3 variables defined and using echo to display the output. But the output displays in single line, expected output is sideby side.
a=$(ps -ef | grep java)
b=$(ps -ef | grep http)
c=$(ps -ef | grep php)
echo $a $b $c
Output :
java1 java2 java3 java4 http1 http2 http3 http4 php1 php2 php3 php4
Expected output
java1 http1 php1
java2 http2 php2
java3 http3 php3
java4 http4 php4
also used paste as below, but that dint work too. Using solaris OS
paste <(echo $a) <(echo $b) <(echo $c)