special chars arrangement in code

here is my simple script to show process and owners except me:

ps `-ef |grep xterm |grep -v aucar` | while read a1 a2 a3 a4 a5 a6 a7 a8
do
echo KILL..\($a1\).. $a2 |more
done

how can I pass values from command "ps -ef |grep xterm|grep -v aucar" to ?
because above command doesn't work correctly.. Thanks

Try the following script :

ps -ef | grep xterm | grep -v aucar | \
while read uid pid ppid rest
do
   echo Kill proces $pid for user $uid
done | more

Jean-Pierre.

good gracious , is working now, thanks Jean-Pierre.

:rolleyes: