unix printing files (simple txt files )with pages numbers

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am using the command lp -d (printer_name) * to print all files in the current directory.



How can I print the page number also:




'Page-1' or '1'




on each page per file printed?







share|improve this question

















  • 3




    To print simple text files with page numbers look at enscript.
    – meuh
    Apr 19 at 16:56







  • 2




    That example is confusing. Should "or" be printed a the bottom of each page?
    – agc
    Apr 19 at 19:08







  • 2




    What kind of files? Text files? Use pr. Pdf or postscript files? That's more difficult. What do you use for printing? CUPS?
    – dirkt
    Apr 22 at 9:38







  • 1




    Other tools which can do the things you describe are a2ps (mostly for text files) and the latex package pdfpages (on which various tools like pdfbook are based, see e.g. stackoverflow.com/questions/1603301/…) for pdf files.You see it depends on the context, you should be more precise about this in your question.
    – alphanum
    Apr 23 at 14:20











  • lpr has a -p option: Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
    – Patrick Mevzek
    Apr 24 at 2:18














up vote
0
down vote

favorite












I am using the command lp -d (printer_name) * to print all files in the current directory.



How can I print the page number also:




'Page-1' or '1'




on each page per file printed?







share|improve this question

















  • 3




    To print simple text files with page numbers look at enscript.
    – meuh
    Apr 19 at 16:56







  • 2




    That example is confusing. Should "or" be printed a the bottom of each page?
    – agc
    Apr 19 at 19:08







  • 2




    What kind of files? Text files? Use pr. Pdf or postscript files? That's more difficult. What do you use for printing? CUPS?
    – dirkt
    Apr 22 at 9:38







  • 1




    Other tools which can do the things you describe are a2ps (mostly for text files) and the latex package pdfpages (on which various tools like pdfbook are based, see e.g. stackoverflow.com/questions/1603301/…) for pdf files.You see it depends on the context, you should be more precise about this in your question.
    – alphanum
    Apr 23 at 14:20











  • lpr has a -p option: Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
    – Patrick Mevzek
    Apr 24 at 2:18












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using the command lp -d (printer_name) * to print all files in the current directory.



How can I print the page number also:




'Page-1' or '1'




on each page per file printed?







share|improve this question













I am using the command lp -d (printer_name) * to print all files in the current directory.



How can I print the page number also:




'Page-1' or '1'




on each page per file printed?









share|improve this question












share|improve this question




share|improve this question








edited Apr 29 at 8:28
























asked Apr 19 at 15:40









WAEL

4892615




4892615







  • 3




    To print simple text files with page numbers look at enscript.
    – meuh
    Apr 19 at 16:56







  • 2




    That example is confusing. Should "or" be printed a the bottom of each page?
    – agc
    Apr 19 at 19:08







  • 2




    What kind of files? Text files? Use pr. Pdf or postscript files? That's more difficult. What do you use for printing? CUPS?
    – dirkt
    Apr 22 at 9:38







  • 1




    Other tools which can do the things you describe are a2ps (mostly for text files) and the latex package pdfpages (on which various tools like pdfbook are based, see e.g. stackoverflow.com/questions/1603301/…) for pdf files.You see it depends on the context, you should be more precise about this in your question.
    – alphanum
    Apr 23 at 14:20











  • lpr has a -p option: Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
    – Patrick Mevzek
    Apr 24 at 2:18












  • 3




    To print simple text files with page numbers look at enscript.
    – meuh
    Apr 19 at 16:56







  • 2




    That example is confusing. Should "or" be printed a the bottom of each page?
    – agc
    Apr 19 at 19:08







  • 2




    What kind of files? Text files? Use pr. Pdf or postscript files? That's more difficult. What do you use for printing? CUPS?
    – dirkt
    Apr 22 at 9:38







  • 1




    Other tools which can do the things you describe are a2ps (mostly for text files) and the latex package pdfpages (on which various tools like pdfbook are based, see e.g. stackoverflow.com/questions/1603301/…) for pdf files.You see it depends on the context, you should be more precise about this in your question.
    – alphanum
    Apr 23 at 14:20











  • lpr has a -p option: Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
    – Patrick Mevzek
    Apr 24 at 2:18







3




3




To print simple text files with page numbers look at enscript.
– meuh
Apr 19 at 16:56





To print simple text files with page numbers look at enscript.
– meuh
Apr 19 at 16:56





2




2




That example is confusing. Should "or" be printed a the bottom of each page?
– agc
Apr 19 at 19:08





That example is confusing. Should "or" be printed a the bottom of each page?
– agc
Apr 19 at 19:08





2




2




What kind of files? Text files? Use pr. Pdf or postscript files? That's more difficult. What do you use for printing? CUPS?
– dirkt
Apr 22 at 9:38





What kind of files? Text files? Use pr. Pdf or postscript files? That's more difficult. What do you use for printing? CUPS?
– dirkt
Apr 22 at 9:38





1




1




Other tools which can do the things you describe are a2ps (mostly for text files) and the latex package pdfpages (on which various tools like pdfbook are based, see e.g. stackoverflow.com/questions/1603301/…) for pdf files.You see it depends on the context, you should be more precise about this in your question.
– alphanum
Apr 23 at 14:20





Other tools which can do the things you describe are a2ps (mostly for text files) and the latex package pdfpages (on which various tools like pdfbook are based, see e.g. stackoverflow.com/questions/1603301/…) for pdf files.You see it depends on the context, you should be more precise about this in your question.
– alphanum
Apr 23 at 14:20













lpr has a -p option: Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
– Patrick Mevzek
Apr 24 at 2:18




lpr has a -p option: Specifies that the print file should be formatted with a shaded header with the date, time, job name, and page number.
– Patrick Mevzek
Apr 24 at 2:18















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438765%2funix-printing-files-simple-txt-files-with-pages-numbers%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438765%2funix-printing-files-simple-txt-files-with-pages-numbers%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?