#! /bin/sh

# LPH - print files on the local printer with a pretty banner of the
# filename at the top.
#
# Usage: lph file [file] ...
#
#	Martin Guy, UKC, December 1988

# Do the contents of the loop with $a set to each of the arguments
# to lph in turn.
for a in $*
do
	# pipe the stdout of all the enclosed commands into lpl
	{
		banner $a
		echo $a printed for $USER on `date`
		cat $a
	} | lpl -h
done
