• [^] # Re: getopt(1)

    Posté par (site web personnel, Mastodon) . En réponse au journal Args parser pour shell. Évalué à 3. Dernière modification le 16 février 2024 à 20:14.

    Encore mieux : toto=$(grep -qc truc fichier)
    et si le résultat doit être testé : if [ $(grep -qc truc fichier) -ne 0 ]

    "It is seldom that liberty of any kind is lost all at once." ― David Hume