Computer Science Fundamentals Operating Systems Subjective
Mar 12, 2013

How does a user prepare files for printing in UNIX system?

Detailed Explanation

User prepares files for printing in UNIX by using ‘pr’ command. pr prints header and trailer information surrounding the formatted file. user can specify the number of pages, lines per page, columns, line spacing, page width, etc. to print, along with header and trailer information and how to treat <tab> characters.
Syntax--
     pr [options] file
Common Options
+page_number         start printing with page page_number of the formatted input file
-column         number of columns
-a             modify -column option to fill columns in round-robin order
-d             double spacing
-e[char][gap]         tab spacing
-h header_string        header for each page
-l lines         lines per page
-t             doesn’t print the header and trailer on each page
-w width         width of page

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback