Created
February 22, 2020 19:55
-
-
Save claudiobusatto/0d1b803713f1428eb947e765cb4634a9 to your computer and use it in GitHub Desktop.
Count files inside a directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function count_dir { | |
ls -1 $1 | wc -l | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment