1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/bash FILES="install/module-portal/mysql/hirek.sql" echo -e "\n * Felesleges állományok törlése:" 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