Zest.

Bash: Find files

A short, tested Bash example for find files. Copy it and adjust the names and paths for your project.

Bash
find . -name "*.log"                 # by name
find . -type f -mtime -7              # changed in the last 7 days
find . -type f -size +100M            # bigger than 100 MB
find . -name "*.tmp" -delete
find . -type f -exec grep -l "TODO" {} +

Find it in Zest

Search for “bash find files” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More Bash examples

All Bash examples