85b066e94a405ee66f3a516ca9fb32830b7ec9a8
kent
  Tue Apr 17 22:03:46 2012 -0700
Another little text utility seems to work.
diff --git src/utils/replaceTextBetween/makefile src/utils/replaceTextBetween/makefile
new file mode 100644
index 0000000..faf5d84
--- /dev/null
+++ src/utils/replaceTextBetween/makefile
@@ -0,0 +1,24 @@
+include ../../inc/common.mk
+
+L += -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  ${MYLIBDIR}/jkweb.a
+
+A = replaceTextBetween
+O = replaceTextBetween.o
+
+replaceTextBetween: ${O} ${MYLIBS}
+	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} $L
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+compile:: ${O}
+	${CC} ${COPT} -o ${A}${EXE} ${O} ${MYLIBS} $L
+
+clean::
+	rm -f ${A}${EXE} ${O}
+
+test:
+	replaceTextBetween 'is a ' ' test' testOuter testInner > testOut
+	diff testExpected testOut
+	replaceTextBetween -withEnds 'is a ' ' test' testOuter testInner > testOutWithEnds
+	diff testExpectedWithEnds testOutWithEnds