• [^] # Re: solution

    Posté par . En réponse au message Répertoires qui ne contiennent pas ce fichier. Évalué à 2.

    T'es sûr j'ai essayé et ça fonctionne, par contre il faut faire un ls -ax pour prendre en compte les dossiers vides :


    # ls -lR
    .:
    total 40
    drwxr-xr-x 2 root root 4096 Dec 14 15:38 toté
    drwxr-xr-x 2 root root 4096 Dec 14 15:39 to to
    drwxr-xr-x 2 root root 4096 Dec 14 15:21 toto1
    drwxr-xr-x 2 root root 4096 Dec 14 15:21 toto2
    drwxr-xr-x 2 root root 4096 Dec 14 15:20 toto3

    ./toté:
    total 0

    ./to to:
    total 0

    ./toto1:
    total 4
    -rw-r--r-- 1 root root 0 Dec 14 15:21 toto.m3u

    ./toto2:
    total 8
    -rw-r--r-- 1 root root 0 Dec 14 15:21 toto.m3u
    -rw-r--r-- 1 root root 0 Dec 14 15:21 toto.mp3

    ./toto3:
    total 0

    # find . -type d -exec sh -c 'ls -ax "1ドル" | grep -vq "m3u\b"' {} {} \; -print
    .
    ./toto3
    ./to to
    ./toté


    Testé sur une RHEL 4