Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-10 00:19:31 +00:00
parent d4e4abca39
commit 4ccd905055
82 changed files with 557 additions and 148 deletions

View File

@@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git
- Apply a patch to a specific file:
`patch {{path/to/file}} < {{patch.diff}}`
`patch < {{patch.diff}} {{path/to/file}}`
- Patch a file writing the result to a different file:
`patch {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}} < {{patch.diff}}`
`patch < {{patch.diff}} {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}}`
- Apply a patch to the current directory:
`patch {{[-p|--strip]}} 1 < {{patch.diff}}`
`patch < {{patch.diff}} {{[-p|--strip]}} 1`
- Apply the reverse of a patch:
`patch {{[-R|--reverse]}} < {{patch.diff}}`
`patch < {{patch.diff}} {{[-R|--reverse]}}`