This is a very simple try, please extend and republish it Task : killing process by "patten matching in ps -ef"
$ vi kill_grep paste this #!/bin/bash kill -9 $(ps -ef | grep $1 | cut -c9-15 | head -n-1) exit 0 chmod +x kill_grep cp kill_grep /bin now you can kill process by name itself,, like $ kill_grep gftp will kill all gftp instance ... -- released in public domain, please extend this to make it a good utility,, PS: this is made for new user or like me who want to type less or automate. not for command line Geeks. -- ┌───[ Narendra Sisodiya ]──────────────┐ │ http://narendra.techfandu.org │ http://www.lug-iitd.org └─new number ───[ +91-93121-66995 ]──────┘ --~--~---------~--~----~------------~-------~--~----~ [EMAIL PROTECTED] mailing list -- group http://groups.google.com/group/iitdlug -~----------~----~----~----~------~----~------~--~---
