This is a general question on the use of alias command in linux, but I will take with a mathematica example to be more clear. I want to creat an alias for mathematica run. The mathematica run command for a mathematica file myfile1.m is
math -run "<<myfile1.m"
Now if I put this whole command as an alias in bashrc like
alias m='math -run "<<myfile1.m"'
it will run the file when I just type m in terminal. But I want to know whether there is a way to use in the following way so that it could be used for any mathematica file run in a more sophisticated way :
alias m='math -run "<<file.m? "'
so that from the terminal I can run different mathematica files just typing
m myfile1.m
it will run
math -run "<<myfile1.m"
similarly for anyfile.m one just types
m anyfile.m
and it will run
math -run "<<anyfile.m"