I am having a problem with the scope of an array. I have a 'grep <blah blah> | while read line ; do' loop that builds and array and before the 'done' the array contains exactly what I want. After the 'done' the array is zeroed. I don't understand why the array does not survive the scope of this 'do'. In any case, how do I change the scope? TIA.