Re: Distinguer un appel de script bash par son nom

Página Inicial

Reply to this message
Autor: Frédéric
Data:  
Para: Guilde
Assunto: 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