[ale] Thanks - and another Bash script question

Bob Kruger bkruger at mindspring.com
Thu May 15 12:06:31 EDT 2003


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>
To: ale at ale.org
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 ',' ' '))


-- 
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
<a target=_blank
href="http://www.ale.org/mailman/listinfo/ale">http://www.ale.org/mailman/listinfo/ale</a>
> 
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list