#!/bin/bash if [ -a './CMI' ]; then ps -ef | grep java | grep yjs | grep $(cat CMI) | awk '{print $2}' | xargs kill -9 fi if [ $# -gt 0 ]; then echo $1 ps -ef | grep java | grep yjs | grep $1 | awk '{print $2}' | xargs kill -9 fi