#! /bin/bash # @(#) File Append # case $# in 1) cat >> $1 ;; 2) cat $1 >> $2 echo $1 appended to $2 ;; *) echo "usage : $0 [file] file" ;; esac