Agreed, doing sd 'search' 'replace' **.py is common in my history. I only mention fd + xargs as a backup for when you need to do something that a simple shell expansion won't cover.
Also, for a "confirm your changes" type workflow, I like git add -p after running the sd command just to review all of the changes.
Comments
Agreed, doing sd 'search' 'replace' **.py is common in my history. I only mention fd + xargs as a backup for when you need to do something that a simple shell expansion won't cover.
Also, for a "confirm your changes" type workflow, I like git add -p after running the sd command just to review all of the changes.