[KLUG Members] ariable substitution in bash alias

Komal agencies_ad1 at sancharnet.in
Fri Nov 4 09:51:24 EST 2005


Hello

Most likely this is not possible, just wanted to confirm if I havent
missed it.

In the alias definition,

alias killxyz='ps axf | grep xyz | cut -c 1-5 | xargs kill -9'

is it possible to use a variable $xyz in place of xyz?

Regards,

Thank you

Komal



More information about the Members mailing list