- How can I sort my source files by lines of code?
How can I sort my source files by lines of code?
This will do it:
wc -l *.java | sort -n wc -l *.cpp *.h | sort -n wc -l *.txt | sort -n
wc -l counts the lines sort -n sorts numerically
Copyright © 2008-2022, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.