From 22355f344147b9a7d71ecf60bf74d64d7d07bd70 Mon Sep 17 00:00:00 2001 From: miguel Date: Tue, 13 Dec 2022 12:12:51 +0000 Subject: [PATCH] docs(count-files): adding examples --- subjects/devops/count-files/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/subjects/devops/count-files/README.md b/subjects/devops/count-files/README.md index a4b5b287..9e64cf04 100644 --- a/subjects/devops/count-files/README.md +++ b/subjects/devops/count-files/README.md @@ -17,8 +17,27 @@ $ Here are some Commands that can help you: - `find`. Find files or directories under the given directory tree, recursively. + +Find all php files in a directory: + +```console +$ find . -type f -name "*.php" + +./tec.php +./login.php +./index.php +``` + - `wc`. Count lines, words, and bytes. +```console +$ cat README.md +this is a simple example +with two lines +$ wc -lwc example.md + 2 8 40 example.md +``` + > You have to use Man or Google to know more about commands flags, in order to solve this exercise! > Google and Man will be your friends!