find

Dies ist eine alte Version des Dokuments!


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

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

Mit Mimetype

find . -type f -exec bash -c '
    [[ "$( file -bi "$1" )" == */x-shellscript* ]]' bash {} \; -print
</code


Rekursive suche

<code>
find ./ -type f -xdev -name "vmware*"
  • find.1699168423.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)