[ale] Thanks - and another Bash script question

Geoffrey esoteric at 3times25.net
Thu May 15 15:04:53 EDT 2003




Fletch wrote:
>>>>>> "Bob" == Bob Kruger <bkruger at mindspring.com> writes:
> 
> Bob> If I have a line with comma based delimiters, how would I Bob>
> read that into an array, e.g.
> 
> 
> rodan:~ 609> bash -c 'IFS=",";A="This,Is A,Test";for i in $A;do echo
> $i;done' This Is A Test
> rodan:~ 610>

I did the same, but trying to stuff that into a single variable and then 
reference them as in the previous example of $ct[1]...$ct[n]  doesn't 
work.  Apparently that variable assignment does not honor IFS. ???

-- 
Until later: Geoffrey		esoteric at 3times25.net

The latest, most widespread virus?  Microsoft end user agreement.
Think about it...

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list