小伊森。。。不不。差点CAPCOM附体了。。。小echo 一个小问题
一条命令 查出两行结果 需要将两行结果echo出来的时候 会发现被小echo自动并行了
ps -aux |grep "lalala" | grep -v "/bin/bash" | grep -v "grep"|grep -v "color" | awk -F " " '{print $3" "$4" "$11}'
8.7 5.0 lalala.123
12.1 4.8 lalalal.333
无论是:
echo `ps -aux |grep "lalala" | grep -v "/bin/bash" | grep -v "grep"|grep -v "color" | awk -F " " '{print $3" "$4" "$11}'`
还是:
la=`ps -aux |grep "lalala" | grep -v "/bin/bash" | grep -v "grep"|grep -v "color" | awk -F " " '{print $3" "$4" "$11}'`
echo $la
都显示 :
8.7 5.0 lalala.123 12.1 4.8 lalalal.333
难受
加个东西
echo “$lala”
ojbk