mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> Co-authored-by: Nicolas Kosinski <nicokosi@users.noreply.github.com> Co-authored-by: Alexandre ZANNI <16578570+noraj@users.noreply.github.com>
742 B
742 B
$
Développer une variable Bash. Plus d'informations : https://gnu.org/software/bash/manual/bash.html#Shell-Variables.
- Affiche une variable :
echo ${{VARIABLE}}
- Exécute le contenu d'une variable comme une commande :
${{VARIABLE}}
- Affiche le statut de sortie de la commande précédente :
echo $?
- Affiche un nombre aléatoire entre 0 et 32767 :
echo $RANDOM
- Affiche l'une des chaînes d'invite :
echo ${{PS0|PS1|PS2|PS3|PS4}}
- Développe avec la sortie de
commandeet l'exécute. Identique à l'encapsulation decommandeentre des guillemets inversés :
$({{commande}})
- Affiche combien d'arguments le contexte actuel a :
echo $#
- Affiche un tableau Bash :
echo ${{{nom_tableau[@]}}}