comby
Tool for structural code search and replace that supports many languages. tldr-pages
On several platforms
Several platforms
Match and rewrite templates, and print changes
comby 'assert_eq!(:[a], :[b])' 'assert_eq!(:[b], :[a])' .rsIdentifyMatch and rewrite with rewrite properties
comby 'assert_eq!(:[a], :[b])' 'assert_eq!(:[b].Capitalize, :[a])' .rsIdentifyMatch and rewrite in-place
comby -in-place 'match_pattern' 'rewrite_pattern'IdentifyOnly perform matching and print matches
comby -match-only 'match_pattern' ""Identify