Unix Script -- To Skip killing a specific process

view full story

http://www.unix.com – Hi, By using Code: ps -aux | awk '/mine/{split($15,a,"/");print $1,$2,a[length(a)]}' i get the below listed PID's with there corresponding processes. Code: adm 1522 ABC_Process.tra adm 1939 GENE_Process.tra adm 2729 GENE_Archive.tra adm 3259 xyz_Process.tra I use Code: ps -aux | awk '/mine/{split($15,a,"/");print $1,$2,a[length(a)]}' | while read a PID b; do kill -9 $PID; done to kill the process gracefully. But from the listed processes i do not want "GENE" processes to be killed, and the rest should be. Is there a way to perform it in the (HowTos)