# File: collect
if [ $# -lt 1 ]; then
{ # Beginning code block
	echo "USAGE: $0 filename [filename ...]"
	echo "This command copies the regular files"
	echo "listed into a single echo archive file"
	echo "which may later be executed as a script to"
	echo "recreate the original files."
} 1>&2 #Send statements to standard error
exit 1
fi  

echo "This is a shell script. It is suggested you create a new directory,"
echo "copy this file into it, make this file executable, and execute it. "

for file in $*
do
	if [ -d $file ];then
	echo "Ignoring $file, it is a directory." 1>&2
	else
	echo "$file" >&2
	echo "echo $file"
	echo "cat>$file<<\UNPACK"
	cat $file
	echo "UNPACK"
	fi  
done
