bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing For Loop To Accept Spaces


From: Brian J. Fox
Subject: Re: Forcing For Loop To Accept Spaces
Date: Fri, 19 Apr 2002 05:51:08 -0700

   From: Andreas Schwab <schwab@suse.de>
   Date: Fri, 19 Apr 2002 14:39:09 +0200

   "Brian J. Fox" <bfox@ua.com> writes:

   |> I say again:
   |> 
   |> for i in "$(find .)"; do echo "$i"; done

   This will run the loop body exactly once.

My bad, I'm on California time, and something strange has happened to
my brain.

What I *meant* to say was:

bash$ find . -print | (while read name; do echo "$name"; done)

Brian
== The Difference Between Cultures: ==
    Einigkeit und Recht und Freiheit
    Liberte', E'galite', Fraternite'
    Sex, drugs and rock'n'roll



reply via email to

[Prev in Thread] Current Thread [Next in Thread]