[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: inclure un fichier dans un script bash



Guy Hendrickx a écrit :

Bonjour

Bonjour,

Je suis en train de faire un petit script bash dans lequel je voudrait inclure un autre fichier qui contient mes variables.
Existe il l'equivalent de include() ou require() du php dans le bash ?


C'est source qui permet d'inclure un fichier dans ton script bash.

source ton_fichier

Cordialement.

--
Bruno Berteau
http://b.berteau.free.fr



Reply to: