Show HN: A more ergonomic sed using JavaScript regexes I love `sed`, but specifying in-place replacement across linux/mac is challenging, and I find both the regular expression options hard to remember the exact syntax for. So I built a small wrapper around String.prototype.replace to give the syntax and power of javascript regular expressions (and, optionally, javascript functions): https://github.com/ariabuckles/jsed Or to install:
Some examples:You can use it pretty similarly to `sed`:
Or you can use it more like javascript when needed: |
No comments yet