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

<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

  • find.1698837497.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)