ps -ax | grep geany | awk ‘{print “kill -9 ” $1}’ | sh
kill -9
ps -ax | grep gedit | awk '{print $1}'
Reference:
- How to get PID of process by specifying process name and store it in a variable to use further?
- Find and kill a process in one line using bash and regex
- How to kill multiple processes at once with grep
0 意見:
張貼留言