[ale] Thanks - and another Bash script question
Christopher Bergeron
christopher at bergeron.com
Thu May 15 18:44:02 EDT 2003
Bob, could you put quotes around the "elements" _before_ you put them
into the ct var? I'm assuming that you're getting them from data source
or a prior portion of the script. If so, pre-massaging the data might
help you extract better...
Just my .1 cent(s)
-CB
Bob Kruger wrote:
>Some of the fields that I want to capture will have spaces in them, so I can't go that way.
>
>I should have given a better example:
>
>ct=(chevelle,two tone,green and white,two door)
>
>where $ct[1] = chevelle , $ct[2]="two tone", $ct[3] = "green and white" , etc.
>
>Bob
>
>
>-------Original Message-------
>From: Geoffrey <esoteric at 3times25.net>
>Sent: 05/15/03 11:41 AM
>To: ale at ale.org
>Subject: Re: [ale] Thanks - and another Bash script question
>
>
>
>>Bob Kruger wrote:
>>
>>
>
>
>
>>If I have a line with comma based delimiters, how would I read that
>>into an array, e.g.
>>
>>ct={This,is,a,test)
>>
>>
>
>ct=($(echo one,two,three|tr ',' ' '))
>
>
>
>
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list