From fe31b9677d3f8c47f616d0ddb58be0f23a70666e Mon Sep 17 00:00:00 2001 From: miguel Date: Wed, 14 Dec 2022 13:28:48 +0000 Subject: [PATCH] docs(count-files): adding info on th wc command --- subjects/devops/count-files/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subjects/devops/count-files/README.md b/subjects/devops/count-files/README.md index 9e64cf04..bd7f2322 100644 --- a/subjects/devops/count-files/README.md +++ b/subjects/devops/count-files/README.md @@ -28,10 +28,12 @@ $ find . -type f -name "*.php" ./index.php ``` -- `wc`. Count lines, words, and bytes. +- `wc` is a command line utility for printing newline, word and byte counts for files. It can return the number of lines in a file, the number of characters in a file and the number of words in a file. It can also be combine with pipes for general counting operations Count lines, words, and bytes. + +Here is an example that counts the number of lines, words and bytes: ```console -$ cat README.md +$ cat example.md this is a simple example with two lines $ wc -lwc example.md