Bläddra i källkod

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 år sedan
förälder
incheckning
a1ceb9d1b6
2 ändrade filer med 2 tillägg och 2 borttagningar
  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:
 - 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:
 - 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:
 - 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:
 - Apply multiple find-replace expressions to a file: