shell 输出到数组

top_cmd_line=(top -H -b -d 0.5 -n 2)
top_out=$(${top_cmd_line[@]})
echo $top_out
原文地址:https://www.cnblogs.com/hzcya1995/p/13348374.html