Lines of Code
This folder has folders inside it. Print the total number of lines in all the files whose names end in .py, however deep they lie: one number.
Example 1
run.py
a b
src/app.py
c d e
src/notes.txt
x y
src/util/t.py
f
prints
6
Constraints
- Up to 11 files, in folders up to 3 deep, at least one of them a
.pyfile
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- Only in the FirstHard
- Share of ErrorsHard
- Shift Them UpHard
- Sort Into FoldersHard
- TODOs per FileHard
- The Biggest FileHard
- Totals per GroupHard
- Word Count TableHard