liste_man.sh
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| liste_man.sh [2015/12/21 23:50] – simon | liste_man.sh [2026/08/22 22:12] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Script " | ||
| - | Ce script a pour objet de générer un fichier '' | ||
| - | |||
| - | ==== Avec deux commandes ==== | ||
| - | Voici un exemple avec seulement deux commandes : | ||
| - | <code bash> | ||
| - | #!/bin/bash | ||
| - | |||
| - | # Déclaration d'un tableau contenant la liste des commandes dont on veut générer le man | ||
| - | tab=(" | ||
| - | |||
| - | # Afficher tous les éléments du tableau | ||
| - | echo ${tab[@]} | ||
| - | |||
| - | # Pour chaque élément dans le tableau, générer le man et l' | ||
| - | for i in ${!tab[@]}; do man ${tab[i]} > man_${tab[i]}.txt; | ||
| - | |||
| - | exit 0 | ||
| - | </ | ||
| - | |||
| - | On lance le script pour vérifier son bon fonctionnement : | ||
| - | < | ||
| - | $ ls | ||
| - | liste_man.sh | ||
| - | $ ./ | ||
| - | cat ls | ||
| - | $ ls | ||
| - | liste_man.sh | ||
| - | $ head man_* | ||
| - | ==> man_cat.txt <== | ||
| - | CAT(1) | ||
| - | |||
| - | NOM | ||
| - | cat - Concaténer des fichiers et les afficher sur la sortie standard | ||
| - | SYNOPSIS | ||
| - | cat [OPTION] ... [FICHIER] ... | ||
| - | |||
| - | ==> man_ls.txt <== | ||
| - | LS(1) | ||
| - | |||
| - | NOM | ||
| - | ls - Afficher le contenu de répertoires | ||
| - | SYNOPSIS | ||
| - | ls [OPTION] ... [FICHIER] ... | ||
| - | </ | ||
| - | <WRAP center round tip 60%> | ||
| - | Pour pouvoir exécuter le script avec le raccourcis '' | ||
| - | </ | ||
| - | |||
| - | ==== Script avec toutes les commandes ==== | ||
| - | <code bash> | ||
| - | #!/bin/bash | ||
| - | |||
| - | # Déclaration du tableau contenant la liste des commandes | ||
| - | tab=(" | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | " | ||
| - | |||
| - | # Afficher tous les éléments de " | ||
| - | echo ${tab[@]} | ||
| - | |||
| - | # Exporter le man de chaque commande | ||
| - | for i in ${!tab[@]}; do man ${tab[i]} > man_${tab[i]}.txt; | ||
| - | |||
| - | exit 0 | ||
| - | </ | ||
| - | |||
| - | == Exécution == | ||
| - | < | ||
| - | $ ls | ||
| - | liste_man.sh | ||
| - | |||
| - | $ ./ | ||
| - | alias apt aptitude awk bash cat cd chgrp chmod chown cmake cp crontab curl cut date dd diff diff3 dig dir dirname dmesg dpkg egrep emacs file find free from fsck git gksudo gpg gpg2 grep gunzip gzip head hexdump history host hostname htop htpasswd ifdown ifup ip iptables irssi isodump journalctl jrnl kvmq latex less let line link locate logname ls lscpu lshw lsof lspci lsusb lynx make man minicom mlocate modprobe mogrify more most mount mutt nano nc ncat netcat nl nmap nohup nslookup open openssl pager pdfinfo pdflatex pftp photorec pico print proxy ps pulseaudio pwd python qpdf quickbook ranger rename resize rm rmdir route rsync rvim scp screendump script sdiff seahorse sed see sftp size sleep snice sort split ssh sshfs startx su sudo systemd tar tee telnet top touch tracepath tree umount unalias unar uncompress uniq unrar until unzip uptime users vi vim volname w wait wc weave wget whatis whereis which while whiptail who whoami whois wish write xrandr yes ypdomainname zcat zcmp zip | ||
| - | Aucune entrée de manuel pour alias | ||
| - | Aucune entrée de manuel pour cd | ||
| - | Aucune entrée de manuel pour jrnl | ||
| - | voir « man 7 undocumented » pour obtenir de l'aide quand les pages de manuel ne sont pas disponibles. | ||
| - | Aucune entrée de manuel pour kvmq | ||
| - | Aucune entrée de manuel pour let | ||
| - | man: impossible d' | ||
| - | mdoc warning: Empty input line #226 | ||
| - | mdoc warning: Empty input line #228 | ||
| - | mdoc warning: Empty input line #251 | ||
| - | mdoc warning: Empty input line #253 | ||
| - | mdoc warning: Empty input line #255 | ||
| - | mdoc warning: Empty input line #482 | ||
| - | mdoc warning: Empty input line #484 | ||
| - | mdoc warning: Empty input line #547 | ||
| - | Aucune entrée de manuel pour unalias | ||
| - | Aucune entrée de manuel pour until | ||
| - | man: impossible d' | ||
| - | Aucune entrée de manuel pour while | ||
| - | |||
| - | $ ls | ||
| - | liste_man.sh | ||
| - | man_alias.txt | ||
| - | man_aptitude.txt | ||
| - | man_apt.txt | ||
| - | man_awk.txt | ||
| - | man_bash.txt | ||
| - | man_cat.txt | ||
| - | man_cd.txt | ||
| - | man_chgrp.txt | ||
| - | man_chmod.txt | ||
| - | man_chown.txt | ||
| - | man_cmake.txt | ||
| - | man_cp.txt | ||
| - | man_crontab.txt | ||
| - | man_curl.txt | ||
| - | man_cut.txt | ||
| - | man_date.txt | ||
| - | man_dd.txt | ||
| - | man_diff3.txt | ||
| - | man_diff.txt | ||
| - | man_dig.txt | ||
| - | man_dirname.txt | ||
| - | man_dir.txt | ||
| - | man_dmesg.txt | ||
| - | man_dpkg.txt | ||
| - | </ | ||
| - | |||
liste_man.sh.1450741806.txt.gz · Dernière modification : (modification externe)
