#!/bin/sh set -euC IFS=':' for manpath in $(manpath 2> /dev/null) do find "$manpath" \! -type d -exec zgrep -l "$@" {} + 2> /dev/null \ | sed 's#.*/\([^.]*\)\.\([^.]*\).*#\1(\2)#' done