Answers for "get value of an alias in bash"

1

get value of an alias in bash

type alias_name
# example:
type ls
# ls is aliased to `ls --color=auto'
Posted by: Guest on August-10-2021
0

bash alias with parameter

myfunction() {
    #do things with parameters like $1 such as
    mv "$1" "$1.bak"
    cp "$2" "$1"
}
Posted by: Guest on April-21-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language