El Fri, Dec 27, 2002 at 12:04:39PM +0100, Victor Ruiz Huerga garabate�:
> Aupa, estoy empezando ha hacer un script en bash y me encuentro con el 
> siguiente problema:

hola

> 
> #!/bin/bash

cuando declares una variable, no utilices el d�lar:

y=12
echo $y
         
El d�lar (identificativo de variable) se usa cuando haces uso de la
variable, no cuando la creas.

> $y=12
> 
> me da error
> line 2: =12: command not found
> 
saludos,
diego
-- 
Diego Mart�nez Casta�eda
[EMAIL PROTECTED]
Responsable T�cnico CDSAT Valnal�n
-------------------------------------
C e n t r o   S A T   V a l n a l � n
Ciudad Tecnol�gica Valnal�n
C/ Hornos altos, s/n
33930 La Felguera - Langreo
Asturias - Espa�a
Tel. +34 985 69 22 27 (ext 413)
Fax. +34 985 68 31 93
Videoconferencia +34 985 67 87 58
Web: www.astursat.net
E-mail: [EMAIL PROTECTED]


Todas las leyes humanas se alimentan de la ley divina.
                -- Her�clito de Efeso. (535-475 A.C.) Fil�sofo griego. 

Responder a