wc -l *.java | sort -n wc -l *.cpp *.h | sort -n wc -l *.txt | sort -nwc -l counts the lines sort -n sorts numerically
Programming Tips - How can I sort my source files by lines of code?
Date: 2016apr19
Language: bash
OS: Linux
Q. How can I sort my source files by lines of code?
A. This will do it: