Operating System - HP-UX
1833053 Members
2706 Online
110049 Solutions
New Discussion

lp option for word wrapping

 
SOLVED
Go to solution
Stuart Powell
Super Advisor

lp option for word wrapping

I want to print out a shell script to an HP 4000 laserjet. Some of the lines are longer than 80 characters. It seems to me there is an option to word wrap the print out, but I can't remember it.
Does anybody remember it?

Stuart
Sometimes the best answer is another question
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: lp option for word wrapping

Stuart,

I don't see any option like that in lp and I wondered if maybe pr might help (though I really have no idea). Try "pr FILENAME |lp" and see if that helps.


Pete

Pete
Sanjay_6
Honored Contributor
Solution

Re: lp option for word wrapping

Hi Stuart,

you can try "-o eolwrap"

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: lp option for word wrapping

Hi,

you can also try,

/usr/bin/fold -w 80 file_name |lp

Hope this helps.

Regds
Stuart Powell
Super Advisor

Re: lp option for word wrapping

Sanjay,

Works good. Thank you.

Stuart
Sometimes the best answer is another question
Robert-Jan Goossens_1
Honored Contributor

Re: lp option for word wrapping

Stuart Powell
Super Advisor

Re: lp option for word wrapping

This is what I was looking for.
Sometimes the best answer is another question