Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/szuecs/stringreplace

replaces a string without evaluating regexp for cases where sed is a pain to use
https://github.com/szuecs/stringreplace

Last synced: 4 days ago
JSON representation

replaces a string without evaluating regexp for cases where sed is a pain to use

Awesome Lists containing this project

README

        

For everyone that doesn't want to deal with complex escape sed syntax
and wants to find and replace regular expressions in files.

@ is the magic separator. Need something else? Create a PR or change
it in the file.

```
% go build -o stringreplace main.go
% cat file1
([.])?(:[0-9]+)?)$")
% ./stringreplace '(:[@foo' file1
% cat file1
([.])?foo0-9]+)?)$")
```