From e75baf7d7388c4670c518c190a4ccf535bc8fbff Mon Sep 17 00:00:00 2001 From: Marco Bonelli Date: Tue, 9 Apr 2019 00:49:58 +0200 Subject: [PATCH] sed: minor syntax fix --- pages/common/sed.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/sed.md b/pages/common/sed.md index 22114bf287..2b7a7e31a5 100644 --- a/pages/common/sed.md +++ b/pages/common/sed.md @@ -24,7 +24,7 @@ - Print only text between n-th line till the next empty line: -`sed -n '{{line_number}},/^$/p' {{filename}}` +`sed -n '{{n}},/^$/p' {{filename}}` - Apply multiple find-replace expressions to a file: @@ -34,6 +34,6 @@ `sed 's#{{find}}#{{replace}}#' {{filename}}` -- Print only the `N`th line of a file: +- Print only the n-th line of a file: -`sed '{{N}}q;d' {{filename}}` +`sed '{{n}}q;d' {{filename}}`