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