Davide Giovine ha scritto:
> Il mio script bash dovrebbe prima informarmi se sono presenti le cartelle
> .old e .alt, e chiedermi se sostituire dir1, dir2 o entrambe, capendo
> da solo
> se dover sostituire con le .alt o rimettere le .old al loro posto.
Ho guardato velocemente ma direi che non usi if del tipo

if [ -d /path/dir ]; then

if [ ! -d /path/dir ]; then

che dovrebbero rendere più diretta e sicura l'escuzione
vedi: http://www.thing.dyndns.org/debian/bash.htm

Alessandro


-- 
Per REVOCARE l'iscrizione alla lista, inviare un email a 
[email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]

To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Rispondere a