删除所有进程
根据进程中所含有的字符串进行判断
pid=`ps aux|grep "qemu-system-x86_64"|grep "$1"|awk '{print $2}'`
if [ -n "$pid" ];thenkill -9 $pid
else
echo NULL
fi
删除所有进程
根据进程中所含有的字符串进行判断
pid=`ps aux|grep "qemu-system-x86_64"|grep "$1"|awk '{print $2}'`
if [ -n "$pid" ];then