#!/bin/sh # vim: ft=sh ts=4 sw=4 et # 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/ *\\$//'