Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/10/2009, 00:38
egrueda
 
Fecha de Ingreso: mayo-2009
Ubicación: Madrid
Mensajes: 62
Antigüedad: 15 años
Puntos: 4
Respuesta: Comprobar si existen ficheros en el directorio

Fácil:

Código:
#!/bin/sh

if [ -f /tmp/fichero ]
then
  echo Existe
else
  echo No existe
fi