mirror of https://github.com/CrimsonTome/tldr.git
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
parent
28e3c762f9
commit
45909948c8
|
@ -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…
Reference in New Issue