I have this folder contiaining a lot of *.cpp and *.h files. I want to get a line count of all the files and display them to the screen in sorted order of line count.
I know wc -l *.h *.cpp
will display all the file names with line count, but not in sorted order.