Skip to content

Instantly share code, notes, and snippets.

@benwei
Last active September 11, 2018 03:49
Show Gist options
  • Select an option

  • Save benwei/5e5dbc2eacd32cdf81fec9e8973a3cab to your computer and use it in GitHub Desktop.

Select an option

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