#!/bin/sh cd /doc ( grep -i "name=.$1. " /doc/packages.html grep -i "name=.$1. " /doc/commands.html grep -i "name=.$1. " /doc/cfunctions.html grep -i "name=.$1. " /doc/fileformats.html echo '
Packages:
'
grep -i "$1" /doc/packages.html
echo '
Commands:
'
grep -i "$1" /doc/commands.html
echo '
C functions:
'
grep -i "$1" /doc/cfunctions.html
echo '
File formats:
'
grep -i "$1" /doc/fileformats.html
) | w3m -T text/html