mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 00:35:23 +02:00
20 lines
454 B
Markdown
20 lines
454 B
Markdown
# 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 {{file}}`
|
|
|
|
- Compte les mots d'un fichier :
|
|
|
|
`wc -w {{file}}`
|
|
|
|
- Compte les caractères (octets) d'un fichier :
|
|
|
|
`wc -c {{file}}`
|
|
|
|
- Compte les caractères d'un fichier (en prenant en compte l'ensemble des caractères multi-octets) :
|
|
|
|
`wc -m {{file}}`
|