hardware printout layout terminology

 
Thread Tools Search this Thread
Operating Systems Linux Debian hardware printout layout terminology
# 1  
Old 05-10-2012
hardware printout layout terminology

trying to find online or a book.
the words to use to find 'a' or
'the ways and means' to format left margin, right margin etc from man pages to Hardware Printer.
while looking to print man pages with a Hardware Printer.
I have found lp.
and did a
Code:
man sudoers | lp -p2

to test.
The original that was sent thru the OS GUI did come out okay, yet there were some individual words that were off set to the far left zero margin while the majority were somewhere in the range of 20 px left.
The test page using lp came out with some presets, various individual words and their following sentence structures were included into the zero left margin.
I can understand the end of line from other reading going back to C, though i cannot at this time remember specifics , yet i do understand that there is recognized in the code 'end of line' .
So i would like to get down to some nitty gritty understanding of printing Man Pages to a Hardware Printer and the ways and means to format the text.
Does any one know of words to search with that do not include the usual word 'print' used in conjunction with the command line.
I have tried many word combo`s , frustrating.
Thank you
# 2  
Old 05-11-2012
You might want to check nroff and troff for formatting.

google for 'sed & awk pdf download' and download it. There is a chapter on using sed to format the way I mentioned above. You will have to change margins for example. This is pretty close to nitty-gritty as it gets in UNIX command line stuff.

Check out WoMan as well - uses emacs if I recall correctly.
WoMan: Browse Unix Manual Pages "W.O. (without) Man"
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk --> selective printout with FNR

Hi everybody! need some awk-support. i want a line-selective printout of a file. wat i normally will do with ... awk ' FNR==8' sample.txt But now i need the data from line 8, 10 and the following data from line13 to 250 wich is not end of the file. I tried allready to combine it but without... (2 Replies)
Discussion started by: IMPe
2 Replies

2. Solaris

Hardware faulty, but which hardware?

Hi folk, I have this hardware faunty message, but dont know which hardware is this ? can you guide me ? --------------- ------------------------------------ -------------- --------- TIME EVENT-ID MSG-ID SEVERITY ---------------... (9 Replies)
Discussion started by: dehetoxic
9 Replies

3. UNIX for Dummies Questions & Answers

General Terminology related to the UNIX System

Hello, I am relatively new to the world of programming in general and to the UNIX System in particular. I have a bunch of theoretical questions related to terminology which I have come across in my coursebooks. I hope I post my question at the right place. Any help would be warmly welcome! ... (1 Reply)
Discussion started by: feliks0
1 Replies

4. Shell Programming and Scripting

sqlplus: could it be dirrected do not printout anything, beside results?

I try to prepare a sufficient function to execute a sql-statement, getting back ONLY retrieved results! What I can't figured out how to make the sqlplus not printing the 'Connected to ...', 'Disconnected from...' and the executed statements after 'SQL> '. I am under impression that having... (5 Replies)
Discussion started by: alex_5161
5 Replies

5. Shell Programming and Scripting

Help with awk printout

I want to represent the columns by whats in a txt file. So the columns.txt file contains "$2$3" and the test.txt file contains "bob tom jones jon" I have #!/bin/bash columnsVar=`cat columns.txt` echo "Columns edited: $columnsVar" awk ' {print $columnsVar }' test.txt But it prints out... (1 Reply)
Discussion started by: Bandit390
1 Replies

6. SCO

How to remove date and page header from a printout

I have some HP4+ and HP5 printers printing from Unixware 7.1.4. The problem is that they print a page header with the date and page number. I can't seem to figure out how to stop this. These headers through the pagination off. (2 Replies)
Discussion started by: sladeburke
2 Replies

7. Red Hat

How to take printout of linux file from windows xp using putty?

Friends, I have installed Putty in my windows xp pc. I am connecting the RHEL AS 3 server using putty from my windows xp. My printer is connected to my windows xp. Now, i want to print text.txt of RHEL AS 3.0 in my windows xp printer through putty. For Example: my pc ip is 117.23.2.55... (3 Replies)
Discussion started by: sathyguy
3 Replies

8. SuSE

Keyboard Layout

ok, I am having a seriouse problem! I can not wite in my landguidge, I live in sweden but I seem to have an american keyboard layout so I cant write some letters and all the key commands are all messed up. Does anyone know where I can find a swedisch keyboard layout? (3 Replies)
Discussion started by: Kimm
3 Replies

9. IP Networking

newbie terminology question...

is there a difference between a "port" and a "socket"? (2 Replies)
Discussion started by: trostycp
2 Replies
Login or Register to Ask a Question