[ale] sed question
David S. Jackson
deepbsd at earthlink.net
Thu Nov 7 09:24:40 EST 2002
On Wed, Nov 06, 2002 at 09:32:45PM -0500 Geoffrey The Esoteric <esoteric at 3times25.net> wrote:
> What is it that you're trying to substitute for? Looks to me like it's
> a space for a space????
It's an escaped space, or it's supposed to be.
You know, I think it's my choice of the "for" statement that is
messing things up; "for" takes the spaces and makes a list of all
items separated by a space. I'm trying to ask "for" to behave
differently by seeing a space but not using it to create the
list. I was forgetting that "for" was interpreting the spaces,
not the shell. Oops.
So, the "cat sample.txt|while read line" structure suggested
earlier would be the one to use here, because while won't act on
Guess I just get addicted to "for" sometimes. :-)
David S. Jackson dsj at dsj.net
"But I don't like Spam!!!!"
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale