Passage de paramètre en shell
Résolu/Fermé
A voir également:
- Passage de paramètre en shell
- Netflix paramètre compte - Guide
- Classic shell windows 10 français - Télécharger - Personnalisation
- Passage qwerty azerty - Guide
- Paramètre usine pc - Guide
- Passage windows 7 à 10 - Guide
5 réponses
dubcek
Messages postés
18724
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
15 mai 2024
5 615
14 nov. 2012 à 16:55
14 nov. 2012 à 16:55
$@ tous les paramètres, ou alors $1 $2 $3 etc
$ h() { echo "hello " $@ ; } $ $ h you and me hello you and me $
dubcek
Messages postés
18724
Date d'inscription
lundi 15 janvier 2007
Statut
Contributeur
Dernière intervention
15 mai 2024
5 615
14 nov. 2012 à 16:12
14 nov. 2012 à 16:12
hello
$ h() { echo "hello " $1 ; } $ h world hello world $ x=batman $ h $x hello batman $
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question