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 - bash: Sort my source files by lines of code?
Date: 2016apr19
Language: bash
OS: Linux
Q. bash: Sort my source files by lines of code?
A. This will do it: