mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 01:48:57 +00:00
Update cheatsheets
This commit is contained in:
21
linux/fold
Normal file
21
linux/fold
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fold
|
||||
|
||||
> Folds long lines for fixed-width output devices.
|
||||
> More information: <https://www.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}}`
|
||||
Reference in New Issue
Block a user