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:
parent
28e3c762f9
commit
45909948c8
1 changed files with 1 additions and 1 deletions
|
@ -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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue