Inspired Python
◆◆◆
>>> for path in Path('/opt/documents/').rglob('*.doc'):
print(path)
/opt/documents/tips/tip1.doc
/opt/documents/tips/tip2.doc
/opt/documents/tips/tip3.doc
/opt/documents/articles/common-pathlib-patterns.doc
/opt/documents/news/whats-new-python-3-10.doc
# ... etc ...