1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages.fr/common/wc.md
Managor a70b923d8f
*: add option placeholders to translations (#15933)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-19 00:36:34 +02:00

799 B

wc

Compte les lignes, les mots ou les octets. Plus d'informations : https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html.

  • Compte les lignes d'un fichier :

wc {{[-l|--lines]}} {{chemin/vers/fichier}}

  • Compte les mots d'un fichier :

wc {{[-w|--words]}} {{chemin/vers/fichier}}

  • Compte les octets d'un fichier :

wc {{[-c|--bytes]}} {{chemin/vers/fichier}}

  • Compte les caractères d'un fichier (en prenant en compte l'ensemble des caractères multi-octets) :

wc {{[-m|--chars]}} {{chemin/vers/fichier}}

  • Compte les lignes, les mots et les caractères depuis l'entrée standard stdin :

{{find .}} | wc

  • Compte la longueur en nombre de caractères de la plus grande ligne d'un fichier :

wc {{[-L|--max-line-length]}} {{chemin/vers/fichier}}