Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pirnt lat page

Status
Not open for further replies.

CapeCodder

IS-IT--Management
Aug 25, 2006
1
US
I have several large reports that are generated as text files. I need a simple way to only print the last page whithout knowing what the last page number is.

Thanks
 
Try:

tail -n X your_file_name | lp

...where X is the maximum lines per page. You will get some of the next-to-last page when the last page is short, but you _will_ get all of the last page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top