diff --git a/pages/common/sed.md b/pages/common/sed.md index 1e538a22a..51b1dcc22 100644 --- a/pages/common/sed.md +++ b/pages/common/sed.md @@ -6,7 +6,7 @@ `sed 's/{{find}}/{{replace}}/' {{filename}}` -- Replace the first occurrence on all lines matching a pattern: +- Replace only on lines matching the line pattern: `sed '/{{line_pattern}}/s/{{find}}/{{replace}}/'`