Skip to content

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

License

Notifications You must be signed in to change notification settings

szuecs/stringreplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]+)?)$")

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages