Last active
September 11, 2018 03:49
-
-
Save benwei/5e5dbc2eacd32cdf81fec9e8973a3cab to your computer and use it in GitHub Desktop.
[ben notes] Display total line number of each file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls *.py | while read fn ; do line_num=`cat "$fn" | wc -l`; echo "\"$fn\",$line_num" ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment