i have a command to kill some processes as below:
kill -9 `psu|grep MF1pp|grep -v grep|awk '{print $2}'`
the command works perfectly fine
>psu|grep MF1pp|grep -v grep|awk '{print $2}'
29390
29026
$>kill -9 `psu|grep MF1pp|grep -v grep|awk '{print $2}'`
$>psu|grep MF1pp|grep -v grep|awk '{print $2}'
when i create an alias as below and run it:
alias killaf="kill -9 `psu|grep MF1pp|grep -v grep|awk '{print $2}'`"
$> psu|grep MF1pp|grep -v grep|awk '{print $2}'
5487
5272
$>killaf
ksh: kill: bad argument count
gives the above error.
can anyone tell me what could be the issue?