From 45909948c8d053fffe1c36eddf082b494cd8bf79 Mon Sep 17 00:00:00 2001 From: Patrick R Date: Sun, 12 Mar 2023 17:59:51 +0100 Subject: [PATCH] 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 --------- Co-authored-by: K.B.Dharun Krishna --- pages/linux/sed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/sed.md b/pages/linux/sed.md index 30b1557e3..2471f0b53 100644 --- a/pages/linux/sed.md +++ b/pages/linux/sed.md @@ -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}}`