Find the Python Files
This folder has folders inside it. Print the path of every file whose name ends in .py, however deep it lies, one per line and sorted. Paths start with ./, like ./src/app.py.
Example 1
run.py
x
src/app.py
x
src/util/text.py
x
src/notes.txt
x
README.md
x
prints
./run.py ./src/app.py ./src/util/text.py
Constraints
- Up to 10 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
- In CapitalsEasy
- Lines Five to SevenEasy
- One More LineEasy
- Sorted Into a FileEasy
- The Second ColumnEasy
- Three Largest NumbersEasy
- Without the HeaderEasy
- How Many FilesMedium