Re: shell

Αρχική Σελίδα

Reply to this message
Συντάκτης: Patrice Karatchentzeff
Ημερομηνία:  
Προς: Vincent Caron
Υ/ο: Guilde, Patrick Dupre
Αντικείμενο: Re: shell
Le 11 octobre 2011 17:53, Vincent Caron <vincent@???> a écrit :
> On Tue, 2011-10-11 at 17:32 +0200, Xavier Bestel wrote:
>> myvar=$(ls toto)
>> ls $myvar
>
>  En plus robuste, pour gérer les noms de fichiers contenant des
> séparateurs (espace, tab, etc):
>
>  myvar="$(ls toto)"
>  command "$myvar"


EN plus robuste :

LS=/bin/ls
myvar="$($LS toto)"

PK

--
      |\      _,,,---,,_       Patrice KARATCHENTZEFF
ZZZzz /,`.-'`'    -.  ;-;;,_   mailto:p.karatchentzeff@free.fr
     |,4-  ) )-,_. ,\ (  `'-'  http://p.karatchentzeff.free.fr
    '---''(_/--'  `-'\_)