diff options
-rwxr-xr-x | bin/stbl | 2 | ||||
-rwxr-xr-x | bin/stws | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/bin/sh # Strip a trailing blank line from the given files with ed(1) if [ "$#" -eq 0 ] ; then - printf 2>&1 'stbl: Need at least one file to edit\n' + printf 2>&1 'stbl: Need a filename\n' exit 2 fi for fn ; do @@ -1,7 +1,8 @@ #!/bin/sh # Strip trailing spaces on one or more files if [ "$#" -eq 0 ] ; then - printf >&2 'tstf: Need filenames\n' + printf >&2 'tstf: Need a filename\n' + exit 2 fi for fn ; do ed -s -- "$fn" <<'EOF' |