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 ```
Posted on Mon 28 September 2020 in TIL
In git, during rebase, ours and theirs are reversed. `theirs` is actually the current branch in the case of rebase.
Posted on Mon 28 September 2020 in TIL
Use `(.*)` for matching groups in Python regexes.