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>
pull/13/head
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
1 changed files with 1 additions and 1 deletions

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