Skip to content

Commit 20a30c4

Browse files
committed
Removed confusing example for fileN
1 parent 00705dd commit 20a30c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ The order the arguments are passed on the command line makes a difference
193193

194194
If you need to pass in non-argument stings along side your arguments you just need to add the end of arguments marker `--` and anything that follows wont be parsed as an argument but instead will be assigned to a numbered positional argument:
195195

196-
For example running: `./script.sh --arg1 --arg2 -- file1 file2 -f file5 fileN`
196+
For example running: `./script.sh --arg1 --arg2 -- file1 file2 -f file5`
197197

198198
Will be parsed as:
199199

@@ -203,7 +203,6 @@ Will be parsed as:
203203
* Non-Argument: `file2` (accessible via `$2`)
204204
* Non-Argument: `-f` (accessible via `$3`)
205205
* Non-Argument: `file5` (accessible via `$4`)
206-
* Non-Argument: `fileN` (accessible via `${N}`)
207206

208207
This way you can define arguments along side an arbitrary number of strings you may want to operate on at the same time!
209208

0 commit comments

Comments
 (0)