Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2016apr19 Language: bash OS: Linux Q. How can I sort my source files by lines of code? A. This will do it:wc -l *.java | sort -n wc -l *.cpp *.h | sort -n wc -l *.txt | sort -nwc -l counts the lines sort -n sorts numerically
Add a commentSign in to add a comment