find

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
find [05/11/2023 - 07:13] thommie4find [05/03/2024 - 10:52] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 15: Zeile 15:
 <code> <code>
 find . -exec sh -c "file '{}' | grep -q 'pattern'" \; -print find . -exec sh -c "file '{}' | grep -q 'pattern'" \; -print
-<code>+</code>
  
 Mit Mimetype Mit Mimetype
Zeile 22: Zeile 22:
 find . -type f -exec bash -c ' find . -type f -exec bash -c '
     [[ "$( file -bi "$1" )" == */x-shellscript* ]]' bash {} \; -print     [[ "$( file -bi "$1" )" == */x-shellscript* ]]' bash {} \; -print
-</code+</code>
  
  
-Rekursive suche+Rekursive Suche
  
 <code> <code>
 find ./ -type f -xdev -name "vmware*" find ./ -type f -xdev -name "vmware*"
 +
 +locutus:/usr/share/icons # find ./ -type f -xdev -name "vmware*"
 +find: warning: you have specified the global option -xdev after the argument -type, but global options are not positional, i.e., -xdev affects tests specified before it as well as those specified after it.  Please specify global options before other arguments.
 +./hicolor/16x16/apps/vmware-player.png
 +./hicolor/16x16/apps/vmware-netcfg.png
 +./hicolor/16x16/apps/vmware-workstation.png
 +./hicolor/22x22/apps/vmware-player.png
 +./hicolor/22x22/apps/vmware-netcfg.png
 +./hicolor/22x22/apps/vmware-workstation.png
 +./hicolor/24x24/apps/vmware-player.png
 +./hicolor/24x24/apps/vmware-netcfg.png
 +./hicolor/24x24/apps/vmware-workstation.png
 +./hicolor/256x256/apps/vmware-player.png
 </code> </code>
  • find.1699168392.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)