• [^] # Re: Une solution avec sed

    Posté par . En réponse au message dictionnaire gaulois (suite). Évalué à 1.

    cela semble convenir

    mots.txt:

    a
    aa
    aaa
    l'
    d'
    c'
    c'est
    cella
    cellaire
    cellarie
    cellarié

    commande:cat mots.txt | sed 's/\(.\)\(.*\)/1円2円\n\u1円2円\n\U1円2円/g' | sort -u

    mots-2.txt:

    a
    A
    aa
    Aa
    AA
    aaa
    Aaa
    AAA
    c'
    C'
    cella
    Cella
    CELLA
    cellaire
    Cellaire
    CELLAIRE
    cellarie
    Cellarie
    CELLARIE
    cellarié
    Cellarié
    CELLARIÉ
    c'est
    C'est
    C'EST
    d'
    D'
    l'
    L'

    félicitation
    robertix