Comandos de la terminal/source

De WikiCabal
Saltar a: navegación, buscar

source

[rrc@Llawyr ComandosDeLaTerminal]$ cat Source 
MiVariable=Hola
TuVariable=Adios

[rrc@Llawyr ComandosDeLaTerminal]$ echo $MiVariable

[rrc@Llawyr ComandosDeLaTerminal]$ echo $TuVariable

[rrc@Llawyr ComandosDeLaTerminal]$ ./Source

[rrc@Llawyr ComandosDeLaTerminal]$ echo $MiVariable

[rrc@Llawyr ComandosDeLaTerminal]$ echo $TuVariable

[rrc@Llawyr ComandosDeLaTerminal]$ . ./Source

[rrc@Llawyr ComandosDeLaTerminal]$ echo $MiVariable
Hola
[rrc@Llawyr ComandosDeLaTerminal]$ echo $TuVariable
Adios