#!/bin/sh
# shextract.sh 
#	extract part of a file between a
#	pair of globbing patterns 
[ "$#" -eq "2" ] || {
	echo "Must supply begin and end patterns" >&2
	exit 1
	}
begin=$1
end=$2
of="" ## output flag
while read a; do
	case "$a" in
		"$begin") of="true";;
		"$end") of="";;
		esac
	[ -n "$of" ] && echo $a 
	done
exit 0

