[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

kill with regex?



ps x gives a list of xine's which i would like to kill

1609 ?        S      0:01 xine /dev/hdc
1610 ?        S      0:00 xine /dev/hdc
1618 ?        S      0:00 xine /dev/hdc
1619 ?        S      0:00 xine /dev/hdc
1620 ?        S      0:00 xine /dev/hdc

tried
kill 16[1234567890]* 

which returned
bash: kill: 16[1234567890]*: no such pid

1) is the regexp correct to match the pids of the processes?
2) how do i get kill or bash to realise its an expression?

thanks

hugh



Reply to: