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

    Posté par . En réponse au message Coller du texte de plusieurs fichiers dans un fichier csv. Évalué à 2. Dernière modification le 20 octobre 2021 à 08:55.

    C'est vrai, ça diffère :)

    Sous debian 11 :

    $ man apropos | head -n 23
    APROPOS(1) Manual pager utils APROPOS(1)
    NAME
     apropos - search the manual page names and descriptions
    SYNOPSIS
     apropos [-dalv?V] [-e|-w|-r] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] key‐
     word ...
    DESCRIPTION
     Each manual page has a short description available within it. apropos searches the descrip‐
     tions for instances of keyword.
     keyword is usually a regular expression, as if (-r) was used, or may contain wildcards (-w), or
     match the exact keyword (-e). Using these options, it may be necessary to quote the keyword or
     escape (\) the special characters to stop the shell from interpreting them.
     The standard matching rules allow matches to be made against the page name and word boundaries
     in the description.
     The database searched by apropos is updated by the mandb program. Depending on your installa‐
     tion, this may be run by a periodic cron job, or may need to be run manually after new manual
     pages have been installed.
    

    L'important, c'est "...as if (-r) was used..." : c'est l'option par défaut.

    et

    $ man whatis | head -n 25
    WHATIS(1) Manual pager utils WHATIS(1)
    NAME
     whatis - display one-line manual page descriptions
    SYNOPSIS
     whatis [-dlv?V] [-r|-w] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] name ...
    DESCRIPTION
     Each manual page has a short description available within it. whatis searches the manual page
     names and displays the manual page descriptions of any name matched.
     name may contain wildcards (-w) or be a regular expression (-r). Using these options, it may
     be necessary to quote the name or escape (\) the special characters to stop the shell from in‐
     terpreting them.
     index databases are used during the search, and are updated by the mandb program. Depending on
     your installation, this may be run by a periodic cron job, or may need to be run manually after
     new manual pages have been installed. To produce an old style text whatis database from the
     relative index database, issue the command:
     whatis -M manpath -w '*' | sort > manpath/whatis
     where manpath is a manual page hierarchy such as /usr/man.
    

    Matricule 23415