We can do with ease:
myalias='command param1 param2'
then myalias param3
runs
command param1 param2 param3
I need an alias which will run the same, but without the last 'space':
command param1 param2param3
For example I have many servers in /24 subnet and need to run the same command using the ip. So I want alias like command param1 192.168.0.
then just run myalias 103
and the command will be applied to 192.168.0.103.
I tried to add $1
at the end of the alias but no luck.