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