[linux-l] doofes bash problem
Tobias Schlottke
toby at schlottke.net
Mi Feb 16 14:25:56 CET 2005
On Wed, 16 Feb 2005, Axel Burkhardt wrote:
>
> Aber die "for" - Schleife scheint das Problem zu sein. Drum hilft auch kein
>
> find . -name "*txt" -exec echo {} \;
???
Ich ersetz' mal den find durch ein ls:
for foo in `ls -1 *.txt`; do echo "$foo"; done;
tut nicht, aber:
for foo in "`ls -1 *.txt`"; do echo "$foo"; done;
tut. Du mußt die Argumente der for Schleife
auch schützen.
> Weiss jemand warum? Oder soll ich das doch lieber gleich in Perl
> schreiben ;)
Nanana! Wir wollen doch verstehen und nicht
workarounden... :-)
Toby
Mehr Informationen über die Mailingliste linux-l