I want to find how many
.py files I have in my
GarlicSim directory and all its sub-directories. How do I do that? Either Windows or Linux is fine.
On Windows platforms:
dir /s *.py
find /path/to/GarlicSim -type f -name "*.py" | wc -l
find $DIR -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn