diff options
author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2022-11-29 14:54:57 +0100 |
---|---|---|
committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2022-11-29 14:54:57 +0100 |
commit | 1e83925db48bb6d5fbc458d3f925159f7dacab22 (patch) | |
tree | d511e5503cc74a1fdeb487cefd2a72c9abe1394b | |
parent | b3056da180f372ae74c453f04e56bfdefb2d159b (diff) |
Add bash scripting with positional arguments
-rw-r--r-- | bash.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -88,3 +88,10 @@ All keys: *) error "Unexpected option ${flag}" ;; esac done + +### With positional arguments + +Positional arguments will have to be supplied after flag options (`command +[options] <args>`): + + shift $((OPTIND-1)) |