find

Procura recursivamente por arquivos ou diretórios em uma árvore de diretórios. Mais informações: https://manned.org/find.

find {{caminho_raiz}} -name '{{*.ext}}'

find {{caminho_raiz}} -path '{{**/caminho/**/*.ext}}' -or -name '{{*nome*}}'

find {{caminho_raiz}} -type d -iname '{{*nome*}}'

find {{caminho_raiz}} -name '{{*.py}}' -not -path '{{*/caminho/*}}'

find {{caminho_raiz}} -maxdepth 1 -size {{+500k}} -size {{-10M}}

find {{caminho_raiz}} -name '{{*.ext}}' -exec {{wc -l}} {} \;

find {{caminho_raiz}} -daystart -mtime {{-1}} -exec {{tar -cvf arquivo.tar}} {} \+

find {{caminho_raiz}} -type {{f|d}} -empty -delete -print