Shell Converting csh alias to sh

I'm trying to convert the following csh alias to work with sh:-

alias png ping -c3 192.168.1.\!$

which when run as

png 99 will run ping -c3 192.168.1.99

I tried the following including various combinations
alias png='ping -c3 192.168.1.'\!$

but haven't stumbled across the correct form yet. Can anyone help?
 
If I recall correctly sh(1) doesn't have that functionality with alias. You can define a function though, that'll do the same thing.
 
Back
Top