mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 02:13:54 +00:00
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.
9 lines
301 B
Bash
Executable File
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/ *\\$//'
|