dotfiles/.local/bin/scripts/grepman

6 lines
134 B
Bash
Executable File

#!/bin/sh
# Grep through all manuals
manual=$1
shift
find /usr/share/man -name "*$manual*" | xargs gunzip -c | grep "$@" --color=auto