Forrest logo
back to context overview

fold

List of commands for fold:

  • fold:tldr:1a672 fold: Wrap each line to width "5" and break the line at spaces (puts each space separated word in a new line, words with length > 5 are wrapped).
    $ fold -w5 -s ${filename}
    try on your machine
    explain this command
  • fold:tldr:76de3 fold: Fold lines in a fixed width.
    $ fold --width ${width} ${filename}
    try on your machine
    explain this command
  • fold:tldr:84e0f fold: Wrap each line to width "30".
    $ fold -w30 ${filename}
    try on your machine
    explain this command
  • fold:tldr:aff4d fold: Wrap each line to default width (80 characters).
    $ fold ${filename}
    try on your machine
    explain this command
  • fold:tldr:ecb2f fold: Count width in bytes (the default is to count in columns).
    $ fold --bytes --width ${width_in_bytes} ${filename}
    try on your machine
    explain this command
  • fold:tldr:f7e0f fold: Break the line after the rightmost blank within the width limit.
    $ fold --spaces --width ${width} ${filename}
    try on your machine
    explain this command
back to context overview