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
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
find /path/to/GarlicSim -type f -name "*.py" | wc -l
find $DIR -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
5 years ago
1 year ago