Speed up recovery script finding matching images

Make all the calls to grep go away, and instead use a case statement
like we do earlier in the file to count the number of matching images.
Runtime is now just a few seconds.

BUG=chromium:263207
TEST=run ./recovery.sh; press enter; LOTS of models printed
     run ./recovery.sh; type LINK; just link models printed

Change-Id: I957d37f9ef9f24d00c63b9bfab509e04f4add78c
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/62921
Reviewed-by: Daniel Erat <derat@chromium.org>
1 file changed
tree: 3b6091f5806b62fd04bbd906d4af709381a84f31
  1. linux/
  2. mac/
  3. windows/
  4. README
  5. README_formats.txt