瀏覽代碼

sed.md: add input to the only example missing it (#992)

* sed.md: add input to the only example missing it

* osx/sed.md: add input to the example missing it
Waldir Pimenta 8 年之前
父節點
當前提交
a1ceb9d1b6
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pages/common/sed.md
  2. 1 1
      pages/osx/sed.md

+ 1 - 1
pages/common/sed.md

@@ -16,7 +16,7 @@
 
 - Replace only on lines matching the line pattern:
 
-`sed '/{{line_pattern}}/s/{{find}}/{{replace}}/'`
+`sed '/{{line_pattern}}/s/{{find}}/{{replace}}/' {{filename}}`
 
 - Apply multiple find-replace expressions to a file:
 

+ 1 - 1
pages/osx/sed.md

@@ -16,7 +16,7 @@
 
 - Replace only on lines matching the line pattern:
 
-`sed '/{{line_pattern}}/s/{{find}}/{{replace}}/'`
+`sed '/{{line_pattern}}/s/{{find}}/{{replace}}/' {{filename}}`
 
 - Apply multiple find-replace expressions to a file: