Zmore, huh. Learned a new command-kewl.
Can't you get this done with BaSH alone? Not really sure what you're trying to do with the number range but egrep handles regexes.
zmore myfile.gz | egrep -o "BBA [2|3][0-9][0-4]"
the -o flag says to show only matching strings
you can even tack a | sort on the end to put them in order ( I think this is what you were trying to do :-)
The regex [2|3][0-9][0-4] will only match the first 5 numbers of every ten, since the last [0-4] will only match 0,1,2,3,4. To get the range from 200-394 would be a bit more intricate.