Which option is used with pr command to display output along with line numbers?

Hưng Thịnh

New member
Which option is used with pr command to display output along with line numbers?
A. -d
B. -n
C. -o n
D. -t
 
Answer: b
Explanation: pr command offers many options which are used for producing the output in just the format we need. For example,
-d double spaces input
-n numbers lines, helps in debugging code
-o n offsets lines by n spaces, increases left margin of the page
Code:
$ pr  -t  -n  -d  -o  10  dept.lst
    1    01:accounts:6213
    2    02:admin:5423
    3    03:marketing:6521
    4    04:personnel:2365
 

Tìm kiếm

Back
Top