I want to have an alias to do something like pkill -f PATTERN
but ignoring the case of the pattern. This is what I have after looking around but it's not working
alias pkf="kill `ps ax | grep -i $1 | awk '{ print $2 }'`"
alias pkf9="kill -9 `ps ax | grep -i $1 | awk '{ print $2 }'`"