function KillApp { appname=$1 ps -ax | grep $appname | sed 's/^[ \t]*//' | cut -d " " -f1 | while read -r pid cmd ; do echo "Killing $pid" kill $pid done }
KillApp Term
function KillApp { appname=$1 ps -ax | grep $appname | sed 's/^[ \t]*//' | cut -d " " -f1 | while read -r pid cmd ; do echo "Killing $pid" kill $pid done }
KillApp Term