Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1ecca9321e
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (17 sloc) 0.382 kb
#/bin/bash
DIR="."
for i in $(find $DIR -type f -name '*~'); do
echo "REMOVING $i"
rm $i
done
for i in $(find $DIR -type f -name '*.pyc'); do
echo "REMOVING $i"
rm $i
done
TOTAL=0
for i in $(find $DIR -type f -name '*.py'); do
NUM_LINES=$(cat "$i" | wc -l)
TOTAL=$((${TOTAL}+${NUM_LINES}))
echo "${NUM_LINES} ${i}"
done
echo "Total lines in *.py files: ${TOTAL}"
Jump to Line
Something went wrong with that request. Please try again.