comby

Structural code search and replace tool for multiple languages

brewmacoslinux
Try with needOr install directly
Source

About

Tool for changing code across many languages

Commands

comby

Examples

Replace function calls across multiple files$ comby 'console.log(:[arg])' 'debug(:[arg])' .js -in-place
Search for code pattern matching in Python files$ comby 'def :[func](:[args])' .py
Replace string literals in JSON with regex matching$ comby '":[key]": ":[val]"' '":[key]": null' .json -in-place