On Tue, Mar 10, 2009 at 03:21:38PM -0400, Chris F.A. Johnson wrote:
> while [ $n -lt ${#arra...@]} ]
> do
> case ${array2[$n]} in
> *"$match"*)
> array1[${#arra...@]}]=${array2[$n]}
> unset array2[n]
Unsetting elements of array2 will create holes in the array, which means
$
On Tue, 10 Mar 2009, OnTheEdge wrote:
I'm having a problem getting this to work. I'm currently doing this using a
file instead of an array, but it is too slow. Here's what I'm trying to do:
For each record in my main array (array1), I want to get a match out of
array2 and append it to the arra
hio Columbus' record from
the array so I don't pick it up the next time I search on Ohio.
Any help would be greatly appreciated...
Duane
--
View this message in context:
http://www.nabble.com/delete-elements-from-an-array...-tp22440833p22440833.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.