On Mar 13 Ago 2002 12:10, cana rich wrote:
> Hello,
> I've writen a script like this :
> #!/usr/bsh
> file='ls -1 /home/directory/*'
> echo $file
> ....
> Meanwhile, when there is nothing in this directory, the script is blocked.
> I've tried to put :
>
> file='ls -1 /home/directory/*' >> /dev/null
>
> but it doesn't work.
>
> Can you help me please?
If there is nothing in the directory, then $file=="".
Use an if statement to see if there is something in the directory.
--
Porqu� usar una base de datos relacional cualquiera,
si pod�s usar PostgreSQL?
-----------------------------------------------------------------
Mart�n Marqu�s | [EMAIL PROTECTED]
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list