mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-23 00:02:47 +00:00
Update cheatsheets
This commit is contained in:
14
tldr/ed
14
tldr/ed
@@ -15,19 +15,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start an interactive editor session with an empty document and a specific prompt:
|
||||
|
||||
`ed --prompt='> '`
|
||||
`ed {{[-p|--prompt]}} '{{> }}'`
|
||||
|
||||
- Start an interactive editor session with user-friendly errors:
|
||||
|
||||
`ed --verbose`
|
||||
`ed {{[-v|--verbose]}}`
|
||||
|
||||
- Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt:
|
||||
|
||||
`ed --quiet`
|
||||
`ed {{[-q|--quiet]}}`
|
||||
|
||||
- Start an interactive editor session without exit status change when command fails:
|
||||
|
||||
`ed --loose-exit-status`
|
||||
`ed {{[-l|--loose-exit-status]}}`
|
||||
|
||||
- Edit a specific file (this shows the byte count of the loaded file):
|
||||
|
||||
@@ -35,4 +35,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Replace a string with a specific replacement for all lines:
|
||||
|
||||
`,s/{{regular_expression}}/{{replacement}}/g`
|
||||
`,s/{{regular_expression}}/{{replacement}}/g<Enter>`
|
||||
|
||||
- Exit ed:
|
||||
|
||||
`q<Enter>`
|
||||
|
||||
Reference in New Issue
Block a user