#!/bin/sh # # Copyright 1995, by Hewlett-Packard Company # # The code in this file is from the book "Shell Programming # Examples" by Bruce Blinn, published by Prentice Hall. # This file may be copied free of charge for personal, # non-commercial use provided that this notice appears in # all copies of the file. There is no warranty, either # expressed or implied, supplied with this code. # case $# in 1 ) cat >> $1 ;; 2 ) cat $1 >> $2 ;; * ) echo "Usage: append [fromfile] tofile" 1>&2 ;; esac