Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

38
ed Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ed
> The original Unix text editor.
> See also: `awk`, `sed`.
> More information: <https://www.gnu.org/software/ed/manual/ed_manual.html>.
- Start an interactive editor session with an empty document:
`ed`
- Start an interactive editor session with an empty document and a specific prompt:
`ed --prompt='> '`
- Start an interactive editor session with user-friendly errors:
`ed --verbose`
- Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt:
`ed --quiet`
- Start an interactive editor session without exit status change when command fails:
`ed --loose-exit-status`
- Edit a specific file (this shows the byte count of the loaded file):
`ed {{path/to/file}}`
- Replace a string with a specific replacement for all lines:
`,s/{{regular_expression}}/{{replacement}}/g`