#!/bin/sh apropos . \ | sed -E 's/ (\([^)]+\))\s*-/\1 —/' \ | sort \ | osel \ | sed 's/\s.*//' \ | { IFS= read -r page [ -n "$page" ] && man -Tpdf "$page" | zathura - }