Files
mercury/tools/cont
Zoltan Somogyi 35b6ba6440 Add a tool for invoking add_cont_lines on all lines of a block except
Estimated hours taken: 0.1
Branches: main

tools/cont:
	Add a tool for invoking add_cont_lines on all lines of a block except
	the last.
2005-08-25 07:54:15 +00:00

9 lines
301 B
Bash
Executable File

#!/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/ *\\$//'