• [^] # Re: que dit le dico ?

    Posté par (site web personnel, Mastodon) . En réponse au message Coller du texte de plusieurs fichiers dans un fichier csv. Évalué à 2.

    Toutes les implémentations ne se valent pas et je n'ai pas spécialement creusé. J'ai une BSD et les descriptions y semblent très similaires à mon goût.

    $ man apropos | head -n 16
    apropos(1) apropos(1)
    NAME
     apropos - search the whatis database for strings
    SYNOPSIS
     apropos keyword ...
    DESCRIPTION
     apropos searches a set of database files containing short descriptions
     of system commands for keywords and displays the result on the standard
     output.
    AUTHOR
    $ man whatis | head -n 19
    whatis(1) whatis(1)
    NAME
     whatis - search the whatis database for complete words.
    SYNOPSIS
     whatis keyword ...
    DESCRIPTION
     whatis searches a set of database files containing short descriptions
     of system commands for keywords and displays the result on the standard
     output. Only complete word matches are displayed.
     The whatis database is created using the command /usr/libexec/make-
     whatis.
    AUTHOR
    

    Ici c'est makewhatis qui joue le rôle de mandb des GNU/Linux ; et l'un fait de la recherche de mot complet tandis que l'autre doit faire du mot partiel (peut-être que l'implémentation GNU va plus loin en utilisant des expressions rationnelles, faudra que je vérifie sur un des serveurs au boulot.)

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