Re: Distinguer un appel de script bash par son nom

Pàgina inicial

Reply to this message
Autor: Frédéric
Data:  
A: Guilde
Assumpte: Re: Distinguer un appel de script bash par son nom
Le 31/01/2017, Laurent a écrit :

> tu peux faire:
>
> case $0 in
> */toto.sh) echo ceci est toto ;;
> */titi.sh) echo ceci est titi ;;
> esac


Ah, oui, effectivement ! KISS ;o)

Merci !

-- 
    Frédéric