Change text

Apache 2.0

Completely replaces the contents of the text file with other text. Use together with a FindSourceFiles precondition to limit which files are changed.

org.openrewrite.text.ChangeText

Required

The text file will have only this text after the change. The snippet provided here can be multiline.

mod run . --recipe=org.openrewrite.text.ChangeText \ -P toText='Some text.'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.