Skip to content

Instantly share code, notes, and snippets.

@benwei
Last active September 11, 2018 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benwei/5e5dbc2eacd32cdf81fec9e8973a3cab to your computer and use it in GitHub Desktop.
Save benwei/5e5dbc2eacd32cdf81fec9e8973a3cab to your computer and use it in GitHub Desktop.
[ben notes] Display total line number of each file
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