🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #1858

Re: otra cosita sh. script

#1858
From: XimoNW
Date: Thu, 04 Aug 2005 11:19
28 lines
1425 bytes
Oscar Garcia escribi�:
> El Thu, 04 Aug 2005 13:04:41 +0200, XimoNW <elrei69@yahoo.es>
> escribi�:
> 
>>Puedo incluir scipts dentro de otro script, como si fuera un include, 
>>para no tener que replicar c�digo
> 
> 
> Ejemplo de "config.sh":
> 
> #!/bin/bash
> VARIABLE="hola a todos"
> 
> Ejemplo de "prueba.sh":
> 
> #!/bin/bash
> . config.sh
> echo $VARIABLE
> 
> A ver si te vale eso.

me vale, muchas gracias

> 
> Quiz� necesites hacer un export (no lo he probado).
> 
> Un saludo.
> 
Technical Details
Message-ID: <3lebtfF11otrtU2@individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <3le2m2F11ptbkU1@individual.net> <3leb29F1235rcU1@individual.net> <93u3f15ut5eqr3gci0damhbngvbto3urp2@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,4f55cc92aa244081
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: XimoNW <elrei69@yahoo.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: otra cosita sh. script
Date: Thu, 04 Aug 2005 13:19:11 +0200
Lines: 28
Message-ID: <3lebtfF11otrtU2@individual.net>
References: <3le2m2F11ptbkU1@individual.net> <3leb29F1235rcU1@individual.net> <93u3f15ut5eqr3gci0damhbngvbto3urp2@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net WC2ZtBvJqfD0ttAbAKeElAweG8+K3G8cgrouhVOIsAjgOkTIi7
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: es-es, es
In-Reply-To: <93u3f15ut5eqr3gci0damhbngvbto3urp2@4ax.com>