Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
a1ceb9d1b6
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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: