1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash FILES="www/include/modules/naplo/ertekeles/ertekeles.php" echo -e "\n Elavult állományok törlése:\n" for FILE in $FILES; do echo -n " $BASEDIR/$FILE ... " if [ -e $BASEDIR/$FILE ]; then rm -f $BASEDIR/$FILE echo "törölve." else echo "nincs." fi done