How Many Files
This folder has folders inside it. Print how many files there are in all, however deep, not counting the folders themselves.
Example 1
a.txt
x
src/b.py
x
src/util/c.py
x
prints
3
Constraints
- Up to 12 files, in folders up to 3 deep
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Bash problems
- If the File Is ThereMedium
- On One LineMedium
- Orders Over a HundredMedium
- Pull Out the NumbersMedium
- Rename Them AllMedium
- SquaresMedium
- Sum a ColumnMedium
- Swap Two ColumnsMedium