mirror of https://github.com/CrimsonTome/tldr.git
17 lines
423 B
Markdown
17 lines
423 B
Markdown
|
# Fold
|
||
|
|
||
|
> Folds long lines for fixed-width output devices.
|
||
|
> More information: <https://manned.org/fold>.
|
||
|
|
||
|
- Fold lines in a fixed width:
|
||
|
|
||
|
`fold --width {{width}} {{path/to/file}}`
|
||
|
|
||
|
- Count width in bytes (the default is to count in columns):
|
||
|
|
||
|
`fold --bytes --width {{width_in_bytes}} {{path/to/file}}`
|
||
|
|
||
|
- Break the line after the rightmost blank within the width limit:
|
||
|
|
||
|
`fold --spaces --width {{width}} {{path/to/file}}`
|