#!/bin/sh # find a word and save to file. [ -n "$*" ] && { if echo "$*" | egrep -q ' ' then w=`echo "$*" | tr ' ' '-'` fi [ -f "$w*" ] && rm -v "$w*" /bin/grep -hi "$*" *.b >$w.html cat $w.html | gawk -v x="$*" ' function em(s) { printf( "%s", s) } BEGIN { print( "\n
\n") printf( "