1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00
tldr/pages/linux/fold.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

476 B

fold

Folds long lines for fixed-width output devices. More information: https://www.gnu.org/software/coreutils/manual/html_node/fold-invocation.html.

  • 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}}