[m-rev.] diff: tools/cont
Zoltan Somogyi
zs at cs.mu.OZ.AU
Thu Aug 25 17:53:24 AEST 2005
tools/cont:
Add a tool for invoking add_cont_lines on all lines of a block except
the last.
Zoltan.
cvs diff: Diffing .
Index: cont
===================================================================
RCS file: cont
diff -N cont
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ cont 25 Aug 2005 05:21:58 -0000
@@ -0,0 +1,8 @@
+#!/bin/sh
+# This script add a backslash to the end of every line in its input except
+# the last. The input can come either from a list of files named on the
+# command line or from standard input.
+#
+# This script assumes that there are no tabs in the input.
+
+add_cont_lines "$@" | sed -e '$s/ *\\$//'
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list