Globally replace text in several files: Difference between revisions
Globally replace text in several files (view source)
Revision as of 06:13, 24 January 2020
, 4 years agoAdd Factor
(→{{header|Java}}: Add Java 11 shorter way.) |
(Add Factor) |
||
Line 468:
File.WriteAllText(name, newContent)
0</lang>
=={{header|Factor}}==
{{works with|Factor|0.99 2019-10-06}}
<lang factor>USING: fry io.encodings.utf8 io.files kernel qw sequences
splitting ;
: global-replace ( files old new -- )
'[
[ utf8 file-contents _ _ replace ]
[ utf8 set-file-contents ] bi
] each ;
qw{ a.txt b.txt c.txt }
"Goodbye London!" "Hello New York!" global-replace</lang>
=={{header|Fortran}}==
|