📜  接受参数的 bash 别名函数 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:46.432000             🧑  作者: Mango

代码示例2
myfunction() {
    #do things with parameters like $1 such as
    mv "$1" "$1.bak"
    cp "$2" "$1"
}