Content
Data
License: GNU GPLv3 +
Version number: GNU Bash 5
Developer / owner: Free Software Foundation Inc.
Short description:
The manual page and help for the shift built-in Bash command. The shift command shifts the positional parameters, renaming the positional parameters $ N + 1, $ N + 2 ... to $ 1, $ 2 ....
Man page output
man bash
[...] shift [n] The positional parameters from n+1 ... are renamed to $1 .... Parameters repre- sented by the numbers $# down to $#-n+1 are unset. n must be a non-negative number less than or equal to $#. If n is 0, no parameters are changed. If n is not given, it is assumed to be 1. If n is greater than $#, the positional parameters are not changed. The return status is greater than zero if n is greater than $# or less than zero; otherwise 0. [...]
Help output
shift --help
shift: shift [n] Pozicionális paraméterek eltolása. Az $N+1, $N+2... pozicionális paraméterek átnevezése $1, $2... névre. Ha nincs N megadva, értéke 1 lesz. Kilépési kód: Sikerrel tér vissza, kivéve ha N negatív vagy nagyobb mint $#.
Related Content
- 13 views