## - Do not specify a shell here - use the one used by caller
#
# Remove the bootp entry which contains the regexp specified by $1
# The file to remove it from is specified by $2
# Results appear on stdout.
#
if [ ! -f $2 ]
then
#    $NLECHO "noFile $2"
#    exit 1
    exit 0					# Not such a sin
fi

(cat $2 ; /bin/echo "") |			# Make sure it ends with \n
sed -e "/^[^#]/{
	:x
	N
	s|[\][	 ]*\n[	 ]*|@-@|
	tx
	}" |					# flatten out entries to one-per-line
sed -e '/^[	 ]*$/d' |			# delete blank lines
#tee ~/tmp/int |				# Just for debugging
egrep -vi "$1" |				# delete entries which match pattern
sed -e 's/@-@/\\\
	/g ; s/^\([^#].*[^\\]\)$/\1\
/'						# puff up entries again.

exit 0



