/ Published in: Bash
URL: http://www.arnebrasseur.net
Expand |
Embed | Plain Text
#!/bin/bash ps ax | grep $1 | sed 's/\ \([0-9]*\).*/\1/g' | xargs kill -9
Comments
Subscribe to comments
You need to login to post a comment.
plexus on 10/17/06
pipe linux grep ubuntu sed xargs kill hal sudo processes
2 people have marked this snippet as a favorite
URL: http://www.arnebrasseur.net
#!/bin/bash ps ax | grep $1 | sed 's/\ \([0-9]*\).*/\1/g' | xargs kill -9
Subscribe to comments
You need to login to post a comment.
ps axo pid,user,cmd|sed '/\ \ '"$USER"'./!d; /\ '"$1"'$\|\ '"$1"'\ /!d; s/\ ([0-9])./\1/g'|xargs kill -9
ps axo pid,user,cmd|sed '/\ \ '"$USER"'./!d; /\ '"gqview"'$\|\ '"gqview"'\ /!d; s/\ ([0-9])./\1/g'|xargs kill -9
ps. Mhm, markdoned ^^..
No! :[ Please, delete this, sux cms.
No! :[ Please, delete this, sux cms.