]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/miscellany/scripts/append.sh
1 : append editor
for mh
-- /jlr and bd
4 1) msg
=$1; echo -n 'Append file(s): ' 1>&2; read appendix
;;
5 2) msg
=$2; appendix
=$1;;
6 *) echo 1>&2 "Usage: `basename $0` [file]"; exit 1;;
11 if [ -f $arg -a -r $arg ] # exists; non-directory; readable
13 echo 1>&2 \"$arg\" # yell the file name out
14 cat </dev
/null
$arg >>$msg
16 echo 1>&2 "`basename $0` $arg: Sorry."