fichiers=$(ls /etc/vsftpd/user_conf) users="" lignes=$(cat /etc/vsftpd/login.txt) nb=1 for ligne in $lignes do if [ $(($nb%2)) -ne 0 ]; then users="$users $ligne" fi nb=$(($nb+1)) done for conf in $fichiers do found=0 for user in $users do if [ $conf = $user ]; then found="1" fi done if [ $found != "1" ]; then rm -f /etc/vsftpd/user_conf/$conf echo "Fichier /etc/vsftpd/user_conf/$conf supprimé" fi done