#!/bin/ksh # Creates readable, printable version of man output # Dan Martin Wed Sep 4 16:52:26 MDT 2002 if [[ -z ${1} ]] then cat << BOX Error: No UNIX command given to man! Usage: ./manit.ksh command Action: Puts readable man output into ./man_command.txt BOX exit 1 fi # spelled-out sed command is: s/dotCtlH//g man $1 | sed s/.//g >./man_${1}.txt echo "\nOutput of \"man $1\" is in ./man_${1}.txt\n" # EOF