-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2006-03-09 a las 15:33 +0100, miguel gmail escribió:
depende de como lo quieras usar. Por ejemplo, para un bash script, yo usaría algo como (revisalo, pq puede estar mal)
if [ -f /tu/fichero ] then
O con "test", que creo es más flexible. Me parece que también es un "built-in" del bash, o sea, no hay penalización por cargar nada. function test_dest_iso() { if test -d $DESTINO_ISO ; then #echo "El fichero de imagen de destino $DESTINO_ISO existe, debes borrarlo manualmente." echo "Destination ISO image file $DESTINO_ISO exists, you must delete it manually." exit 2 fi } - -- Saludos Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEEEIutTMYHG2NR9URAgJdAJ4qPt8UmDTeykjT9IVL2zfZx99qEACfUdAA NRg9KnKMuGc/hl9+nDaF3TA= =boyt -----END PGP SIGNATURE-----