ubuntu:file:display_file_using_formatting
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:file:display_file_using_formatting [2019/12/15 20:12] – created peter | ubuntu:file:display_file_using_formatting [2022/06/13 11:11] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - File - Display file using formatting ====== | ||
- | |||
- | **' | ||
- | |||
- | This command helps in formatting the file for printing on the terminal. | ||
- | |||
- | There are many options available with this command which help in making desired format changes on file. | ||
- | |||
- | The most used ' | ||
- | |||
- | ^Option^Function^ | ||
- | |-x|Divides the data into ' | ||
- | |-h " | ||
- | |-t|Does not print the header and top/bottom margins| | ||
- | |-d|Double spaces the output file| | ||
- | |-n|Denotes all line with numbers| | ||
- | |-l page length|Defines the lines (page length) in a page. Default is 56| | ||
- | |-o margin|Formats the page by the margin number| | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Display into columns ===== | ||
- | |||
- | <code bash> | ||
- | pr -3 Filename | ||
- | </ | ||
- | |||
- | Displays the file content arranged in three columns. | ||
- | |||
- | ---- | ||
- | |||
- | ===== Assign a header ===== | ||
- | |||
- | <code bash> | ||
- | pr -h " | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Denote all lines with numbers ===== | ||
- | |||
- | <code bash> | ||
- | pr -n Filename | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
ubuntu/file/display_file_using_formatting.1576440739.txt.gz · Last modified: 2020/07/15 09:30 (external edit)