Find the location that you want to search in, change into that location.
wc -w **/*.md
This will do a word count recursively over the directory and count all the words in files with the extension of
How to count how many lines are in a git project?
The following will print out all the line numbers in
the entire project just cd into the directory.
git ls-files | xargs cat | wc -l
But hold on, I want to see how many lines are in each file
and then show me the complete number of lines of code.
wc -l $(git ls-files)
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More