- Install: Add code to
~/.bash_functions
- Useage:
howmany md
- Returns: a number for how many files with an extension of "md" exists in your current directory and all sub-directories
Last active
April 8, 2018 10:24
-
-
Save EvanLovely/15fdbc96c04655743b7d to your computer and use it in GitHub Desktop.
bash function: find how many of a file type are here
This file contains hidden or 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
# find how many of a file type are here | |
howmany () { | |
find . -name "*.$1" | wc -l | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment