Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-13 00:18:34 +00:00
parent ffbd8c31db
commit 904f7fe0c1
46 changed files with 228 additions and 157 deletions

14
tldr/ed
View File

@@ -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>`