TIL - Bash Shift
Posted on Mon 28 September 2020 in TIL
In `bash`, use `shift` to reassign positional arguments.
For example:
```bash $1 $2 $3 ```
Would become
```bash $1 matches old $2 $2 matches old $3 ```
Posted on Mon 28 September 2020 in TIL
In `bash`, use `shift` to reassign positional arguments.
For example:
```bash $1 $2 $3 ```
Would become
```bash $1 matches old $2 $2 matches old $3 ```