fsql

Query your filesystem using SQL-like syntax instead of find

brewmacoslinux
Try with needOr install directly
Source

About

Search through your filesystem with SQL-esque queries

Commands

fsql

Examples

Find all PNG files modified in the last 7 days$ fsql 'SELECT path FROM files WHERE name LIKE "%.png" AND mtime > now() - 7d'
Find large files over 100MB in your home directory$ fsql 'SELECT path, size FROM files WHERE size > 100m AND path LIKE "/home/%"'
List all executable files in current directory$ fsql 'SELECT path FROM files WHERE is_executable = true'