The attached patch adds a --compact option to pr that creates a 2 line header 
and 0 line footer instead of the default 5 line header and 5 line footer.

This allows the normal header line with the file name, date and page number 
without wasting 8 lines per page.

The alternatives would be 1) re-implementing pr in awk or another scripting 
language or 2) running pr with an increased -l and then post-processing the 
output.

I have also stored the patch at http://williambader.com/pat/coreutils-8.23.pat

Regards,
William

                                          

Attachment: coreutils-8.23.pat
Description: Binary data

Reply via email to