I am using the following command to kill my servers at the moment and want to combine them into one.
1- ps aux | grep 'python manage.py runserver'
sudo kill -9 $PID
2- ps aux | grep 'python -m SimpleHTTPServer'
sudo kill -9 $PID
3- ps aux | grep 'aptly api server'
sudo kill -9 $PID
Is there a way to kill all the three processes using a single command? or atleast combine them.
EDIT: I am trying the below command but it is just print out single PID number.