N/e thing faster than grep

whats a faster comparison method than grep say if i wanted to pull out
some numbers / text outa some array?

-Thanks