Making alias work in bash script The following approach can be used, for making alias command work in bash scripts. Variables can be used in the bash script to set the preferred options for any command and those variables can be referred in the later section of script to suffice the need ...
An alias can also serve as a shortcut for executing a script. Create a script alias by providing theabsolute pathto the script as the value: alias [alias]='[path-to-script]/[filename].sh' For example, type the command below to createfrenameas an alias for thefile_rename.shbashscript...