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
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
2 years ago
1 year ago