views:

162

answers:

1

I want to print an entire directory of text files to a printer inserting the file name at the top of the first page of each file that is printed. A bash or openoffice script would serve me well. Thanks

+1  A: 

GNU a2ps is nice for this (provides options for multiple pages per sheet, etc.) It can even syntax-highlight source code if you want.

http://www.gnu.org/software/a2ps/

David Winslow
I will have a look at a2ps. Thanks for the recommendation.
Ned Bright
a2ps led me to enscript which does the job with this line:enscript -DDuplex:true -X ascii -PHP4200 *Thanks, Ned.
Ned Bright