bfs Command Examples

Breadth-first search for your files. More information: https://manned.org/bfs.

bfs {{root_path}} -name '{{*.ext}}'

bfs {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'

bfs {{root_path}} -type d -iname '{{*lib*}}'

bfs {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'

bfs {{root_path}} -maxdepth 1 -size {{+500k}} -size {{-10M}}

bfs {{root_path}} -name '{{*.ext}}' -exec {{wc -l}} {} \;

bfs {{root_path}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+

bfs {{root_path}} -type {{f|d}} -empty -delete -print