bash: how to delete elements from an array based on a pattern bash: how to delete elements from an array based on a pattern bash bash