Implement a search output for '-M'.

This mirrors the existing search output for '-A' and '-S'.