Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to pass parameters in shell script?

Shulou Source: shulou.com Published: 2022-06-03 10:25:01 12月06日 Update

1. Use location parameters, such as $0 $1 $2.

2. Use bash built-in function getopts

3. Use the function getopt

Tags: Functions positions arguments scripts Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Shulou Technology MySQL NVidia