Parsing Command Line Options in Shell Scripts | Matthias Friedrich's Blog

Parsing Command Line Options in Shell Scripts | Matthias Friedrich's Blog

瀏覽:1336
日期:2024-07-14
That’s a shorthand form of the for loop. Expanded it looks like this: for PARAM in “$@”; do echo $PARAM done It iterates over the arguments given to the shell script. At least those, that haven’t been removed already via the “shift” call above. If you cal...看更多