From fd246b58d69d3ae61a7f7e0fb1a874aa8e2f19da Mon Sep 17 00:00:00 2001 From: Pallav Kumar Shrestha Date: Fri, 17 Mar 2023 22:40:46 +0100 Subject: [PATCH] Revert "sed: insert lines from file" This reverts commit 00cf292c1acc5808e51ed92228c45f659848aced. --- source/_posts/sed.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/_posts/sed.md b/source/_posts/sed.md index 801c475..bdc0a2b 100644 --- a/source/_posts/sed.md +++ b/source/_posts/sed.md @@ -257,14 +257,6 @@ Insert "Example: " before each line that contains "hello" ```shell script $ sed '/hello/i Example: ' file.txt ``` -Insert lines from file1 before line 5 -```shell script -$ sed '5 r file1' file.txt -``` -Insert lines from file1 after the line that starts with "hello" -```shell script -$ sed '/^hello/ r file1' file.txt -```