The following commands which were confused.
Purpose: Suppose I am preparing a long article or memorandum and wish to print a proof copy to read every day. I can do this using a command string and use of shell script, I can put the command sequence in a file called proof:
$ cat proof
cat article | tbl | nroff -cm -rA2 rN2 -rE1 \
-rC3 -rL66 -rW67 -ro0 | col| lp -d leaser1
Please, can you give me explanation about these command tbl, nroff, col and along with appropriate options.
Re: unix command
Man page is your best friend. It will tell you exactly what each command does and the available options.
So, for example, type man nroff to find out what it does.
Re: unix command
cat - concatenate and display files
cat reads each file in sequence and writes it on the standard output.
tbl - format tables for nroff or troff
tbl is a preprocessor for formatting tables for nroff(1) or troff(1). The input filenames are copied to the standard output, except that lines between .TS and .TE command lines are assumed to describe tables and are reformatted.
nroff - format documents for display or line-printer
nroff formats text in the named files for typewriter-like devices. See also troff(1).
Options may appear in any order so long as they appear before the files.
-raN Set register a (one-character) to N.
col - reverse line-feeds filter
The col utility reads from the standard input and writes to the standard output. It performs the line overlays implied by reverse line-feeds, and by forward and reverse half-line-feeds.
lp - submit print request
lp submits print requests to a destination. There are two formats of the lp command.
-d destination Prints file on a specific destination.
All these are excerts from man on my system (SunOS 5.6). Your system is very likely to be different format of commands and the options they allow. Even if you have the same OS your system administrator may have changed a particular command like col or nroff. By checking your own version of man you will get accurate information on your own system.
On my system it did not have the option -cm for nroff.
I dont know the registers but I would guess L is length in the US 66 lines, W width 67 characters the others I dont know.
Your best option is get a good unix book that explains things well and covers a good selection of unix topics, programs and commands. Then if your particularly interested in text processing, shell scripts get a book on that as they are big topics but a general book will cover a lot of it.