How do you use an alias in a script?
Answer
11 Answers
Answer
11 Answers
- In your shell script use the full path rather then an alias.
- In your shell script, set a variable, different syntax petsc=’/home/your_user/petsc-3.2-p6/petsc-arch/bin/mpiexec’ $petsc myexecutable.
- Use a function in your script. …
- Source your aliases shopt -s expand_aliases source /home/your_user/.bashrc.