Co robi PR użycie. Konsola printing. If - is provided as the filename, read from standard input.

Czy przydatne?

Polecenie pr

Wykonanie, użycie: Convert a text file or files to a paginated or columned version, with headers, suitable for printing. If - is provided as the filename, read from standard input

Opcje wykonania pr w konsoli

+beg_pag[:end-pag] , --pages=beg_pag[:end-pag]

Begin printing on page beg_pag and end on end-pag if specified.

-num_cols, --columns=num_cols

Print in num_cols number of columns, balancing the number of lines in the columns on each page.

-a, --across

Print columns horizontally, not vertically.

-c, --show-control-chars

Convert control characters to hat notation (such as ^C), and other unprintable characters to octal backslash format.

-d, --double-space

Double space.

-D format, --date-format=format

Format the header date using format. See the date command for the possible formats.

-e[tab-char[width] ] , --expand-tabs[=tab-char[width] ]

Convert tabs (or tab-chars) to spaces. If width is specified, convert tabs to width characters (default is 8).

-f, -F, --form-feed

Separate pages with form feeds, not newlines. With -F, print a three-line page header; otherwise print a five-line header and trailer.

-h header, --header=header

Use header for the header instead of the filename.


Print a help message and then exit.

-i[out-tab-char[out-tab-width] ] ,
--output-tabs[=out-tab-char[out-tab-width] ]

Replace spaces with tabs on output. Can specify alternative tab character (default is tab) and width (default is 8).

-J, --join-lines

Merge full lines; ignore -W if set.

-l lines, --length=lines

Set page length to lines (default is 66). If lines is less than 10, omit headers and footers. Thus the default number of lines of text (i.e., not header or trailer) is 56, or 63 with -F.

-m, --merge

Print all files, one per column.

-n[delimiter[digits] ] , --number-lines[=delimiter[digits] ]

Number columns, or, with the -m option, number lines. Append delimiter to each number (default is a tab) and limit the size of numbers to digits (default is 5).

-N num, --first-line-number=num

Start counting with num at the first line of the first page printed. Also see +beg_page.

-o width, --indent=width

Set left margin to width. Does not affect the page width set with -w or -W.

-r, --no-file-warnings

Continue silently when unable to open an input file.

-s[delimiter] , --separator[=delimiter]

Separate columns with the single-character delimiter (default is a tab) instead of spaces.

-S[string] , --sep-string[=string]

Separate columns with string. Default is a tab with -J and a space otherwise.

-t, --omit-header

Suppress headers, footers, and fills at end of pages.

-T, --omit-pagination

Like -t but also suppress form feeds.

-v, --show-non-printing

Convert unprintable characters to octal backslash format.

-w page_width, --width=page_width

Set the page width to page_width characters for multicolumn output. Default is 72.

-W page_width, --page-width=page_width

Set the page width to always be page_width characters. Lines longer than the specified width are truncated unless -J is also specified. Default is 72.


Print version information and then exit.

Przykłady pr działanie w Słownik polecenie P

Przykład PR użycie :
Jak użyć administration command. Convert unshadowed entries in /etc/passwd into shadowed entries in /etc/shadow . Replace the encrypted password in /etc/password with an x. Shadowing passwords keeps them safe co znaczy.
Przykład PR użycie :
Jak użyć password associated with a user name. Only the owner or a privileged user may change a password. Owners need not specify their user name. Users can change their own passwords. For any other operation krzyżówka.
Przykład PR użycie :
Jak użyć processing language that combines many of the most useful features of shell programs, C, awk , and sed , as well as adding extended features of its own. For more information, see Learning Perl and co to jest.
Przykład PR użycie :
Jak użyć administration command. Confirm that a remote host is online and responding. ping is intended for use in network testing, measurement, and management. Because of the load it can impose on the network słownik.
Przykład PR użycie :
Jak użyć Print user information. A light-weight finger program that has both long and short formats. If no users are specified, prints information for all logged-on users czym jest.