comby

Tool for structural code search and replace that supports many…

comby

Tool for structural code search and replace that supports many languages. More information: https://github.com/comby-tools/comby.

comby '{{assert_eq!(:[a], :[b])}}' '{{assert_eq!(:[b], :[a])}}' {{.rs}}

comby '{{assert_eq!(:[a], :[b])}}' '{{assert_eq!(:[b].Capitalize, :[a])}}' {{.rs}}

comby -in-place '{{match_pattern}}' '{{rewrite_pattern}}'

comby -match-only '{{match_pattern}}' ""

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← column comm →