You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

674 B

Count files

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):

Usage

$ ./count-files.sh | cat -e
12$
$

Tips:

Here are some Commands that can help you:

Use the man to get more info on the commands find and wc.