1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 17:15:32 +02:00

sed: improve description of -i option (#9935)

* sed: improve description of -i option

The original description makes it sound like sed would wait for additional input while it actually just modifies the specified file in-place.

* Stylistic improvement to sed.md

Minor stylistic improvements to the in place flag.

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Patrick R 2023-03-12 17:59:51 +01:00 committed by GitHub
parent 28e3c762f9
commit 45909948c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,6 +20,6 @@
`{{command}} | sed -n '1p'`
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in all input lines and save modifications to a specific file:
- Replace all `apple` (basic regex) occurrences with `mango` (basic regex) in a specific file and overwrite the original file in place:
`sed -i 's/apple/mango/g' {{path/to/file}}`