Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 755 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 755 Bytes

in-replace

Build Status Go Report Card

simple multi platform inplace replacer

Installation

go get github.com/czerwonk/in-replace

Configuration

to configure in-replace a yaml file of the following form is needed:

files:
  - path: "test.txt"
    replacements:
      - regex: "(t)est"
        replacement: "T"
        group: 1

group is the capture group and can be omited if the whole match is meant to be replaced.

License

(c) Daniel Czerwonk, 2018. Licensed under MIT license.