Rechercher une page de manuel
contains
Langue: en
Version: 147500 (fedora - 04/07/09)
Section: 1 (Commandes utilisateur)
Sommaire
NAME
contains - test if a word is present in a listSynopsis
contains [OPTIONS] KEY [VALUES...]Description
- •
- -h or --help display this message
Test if the set VALUES contains the string KEY. Return status is 0 if yes, 1 otherwise
Example
for i in ~/bin /usr/local/bin if not contains $i $PATH set PATH $PATH i end end
The above code tests if ~/bin and /usr/local/bin are in the path and if they are not, they are added.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre