杀死多个进程的脚本
#!/bin/bash pids=$(ps -ef | grep warehouse |awk '{print $2}') for pid in $pids do echo $pid kill -9 $pid done