Normale Suche

find /path/ -type f -name file-to-search

Text in Datei suchen

find . -type f -name "*.vcf" -exec grep -il 'idris' {} \;

Nach Filetype sichen

<code> find . -exec sh -c "file '{}' | grep -q 'pattern'" \; -print <code>

Mit Mimetype <code> find . -type f -exec bash -c '

[[ "$( file -bi "$1" )" == */x-shellscript* ]]' bash {} \; -print

</code