Answers for "bash alias function that accepts arguments"

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
0

bash alias function that accepts arguments

alias example='f() { echo Your arg was $1. };f'
Posted by: Guest on September-01-2021

Code answers related to "bash alias function that accepts arguments"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language