coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] add a compact header format to pr


From: William Bader
Subject: [patch] add a compact header format to pr
Date: Mon, 8 Dec 2014 19:25:01 -0500

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

[Prev in Thread] Current Thread [Next in Thread]