1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 13:02:08 +02:00
tldr/pages/linux/fold.md
4G3NT a0f7d6a420
head, fold: update links (#10458)
* head, fold: update links

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-07-09 12:48:17 +05:30

439 B

fold

Folds long lines for fixed-width output devices. More information: https://gnu.org/software/coreutils/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}}