I need to search for a certain process and kill that process. I wrote a command like this:
ps -e | grep dmn | awk '{print $1}' | kill
Where the process name is dmn
. But it is not working. How can I find processes by name and kill
them.
kill $(ps -e | grep dmn | awk '{print $1}')