Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash alias with parameter

myfunction() {
    #do things with parameters like $1 such as
    mv "$1" "$1.bak"
    cp "$2" "$1"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #alias #parameter
ADD COMMENT
Topic
Name
8+7 =