From 3d7497b538b7517ed3f68d8187d92312100ab828 Mon Sep 17 00:00:00 2001 From: miguel Date: Fri, 9 Dec 2022 17:00:46 +0000 Subject: [PATCH] docs(count-files): moving the subject to the folder devops and fix readme --- subjects/{ => devops}/count-files/README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) rename subjects/{ => devops}/count-files/README.md (53%) diff --git a/subjects/count-files/README.md b/subjects/devops/count-files/README.md similarity index 53% rename from subjects/count-files/README.md rename to subjects/devops/count-files/README.md index 8ba82c6ca..a4b5b2874 100644 --- a/subjects/count-files/README.md +++ b/subjects/devops/count-files/README.md @@ -2,7 +2,7 @@ ### Instructions -Create a file `count-files.sh`, which will print the number **(and only the number)** of regular files and folders contained in the current directory and its sub-folders (the current directory must be included in the count): +Create a file `count-files.sh`, which will print the number **(and only the number)** of regular files and folders contained in the current directory and its sub-folders (the current directory must be included in the count). ### Usage @@ -12,11 +12,17 @@ $ ./count-files.sh | cat -e $ ``` -**Tips:** +### Hints Here are some Commands that can help you: -- `find`. Find files or directories under the given directory tree, recursively. [For more information](https://manned.org/find). -- `wc`. Count lines, words, and bytes. [For more information](https://www.gnu.org/software/coreutils/wc). +- `find`. Find files or directories under the given directory tree, recursively. +- `wc`. Count lines, words, and bytes. -Use the man to get more info on the commands `find` and `wc`. +> 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! + +### References + +- [Find](https://manned.org/find). +- [wc](https://www.gnu.org/software/coreutils/wc).