Implement 'grep' command to use new batches.