2021-03-12 12:18:05 +00:00
|
|
|
# shift
|
|
|
|
|
2023-05-30 19:35:53 +01:00
|
|
|
> Shell built-in command that shifts the arguments passed to the calling function or script by a specified number of places.
|
2023-12-29 13:07:58 +00:00
|
|
|
> More information: <https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#shift>.
|
2021-03-12 12:18:05 +00:00
|
|
|
|
|
|
|
- Move arguments by one place dropping the first argument:
|
|
|
|
|
|
|
|
`shift`
|
|
|
|
|
|
|
|
- Move arguments by N places dropping the first N arguments:
|
|
|
|
|
|
|
|
`shift {{N}}`
|