17 Jan
2004
17 Jan
'04
15:57
Christian Schult <cschult@gmx.de> [Sa, 17 Jan 2004 14:52:02 +0100]:
find ~/Mail -type f -name "?*" -a ! -name "Spam*" -print
Das reicht nur, wenn die Shell im aktuellen Verzeichnis nichts findet, das auf die Suchmuster passt, denn "" verhindert keine Expansion durch die Shell! Um sicher zu gehen, sollte *immer* '' verwendet werden oder mit \ geschützt werden, also entweder find ~/Mail -type f -name '?*' -a ! -name 'Spam*' -print oder find ~/Mail -type f -name \?\* -a ! -name Spam\* -print Dann funktioniert es auch mit Sicherheit :) Philipp