sd
is an intuitive find & replace CLI.
{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''
{{echo 'cargo +nightly watch'}} | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'
sd -i {{'window.fetch'}} {{'fetch'}} {{http.js}}
sd -i {{'from "react"'}} {{'from "preact"'}} $(find . -type f)