Last active
August 29, 2015 14:14
-
-
Save chibby0ne/0de0911eba310a151cb1 to your computer and use it in GitHub Desktop.
Counts the number of files of a given 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
#!/bin/bash | |
# Add this one-liner script to the PATH variable and have the power to count the files in a directory from anywhere in the command line | |
ls -1 $1 | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment