Comby
A tool for structural code search and replace that supports every language.
Why consider Comby?
Comby is a structural code search and replace tool written in OCaml. Unlike regular expressions that struggle with nested brackets and string quotes, Comby matches structural code templates (e.g. `foo(:[arg1], :[arg2])`) reliably across all programming languages.
Learn Comby by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide2 sections
Overview of Comby
Comby performs multi-line structural code refactoring without complex regex escape sequences.
Quickstart
# Install Comby CLIbash <(curl -sL get.comby.dev)# Replace print statementscomby 'printf(":[msg]")' 'log_info(":[msg]")' .c -iComby is licensed under the Apache License Version 2.0.
Related tools
More options with a similar category or technology profile.
diskus
Minimal, fast alternative to du -sh written in Rust using multi-threaded directory traversal.
peco
Simplistic interactive filtering tool for Unix pipelines, process lists, and file trees.
Dapr CLI
Command-line tool for managing Dapr distributed application runtime environments and sidecars.
Freeze
Generate beautiful image screenshots and SVGs of code snippets and terminal outputs.