Wolfgang Erlenkötter schrieb: [...]
Im zweiten Beispiel wird die Leerstelle als Trennzeichen benutzt!
Gruß Wolfgang
Aaaah.. jetzt wirds klarer ;) -------8<-------- oifs=$IFS IFS=" " for FILE in `find . -type f -maxdepth 1 -print|sed 's/ /\\ /g'`; do echo -n "File: $FILE -> " if [ -e $FILE ]; then echo -e "\033[32mOK\033[m" else echo -e "\033[31mERROR\033[m" fi done IFS=$oifs exit --------8<-------- Aus man bash: IFS The Internal Field Separator that is used for word splitting after expansion and to split lines into words with the read builtin command. The default value is ``<space><tab><newline>''. IFS wird also nur mit dem Newline besetzt, so wird "Diese Datei" dann als _ein_ Wort erkannt. so long... bernd