Hacker News new | ask | show | jobs
by Myrmornis 792 days ago
I often find myself wanting to do a search and replace across all files in a directory tree (e.g. git repo). With sed, sd, purl etc you do that by listing files with matches and piping into xargs. But that has lots of disadvantages: you're using regexes in two programs, which might differ, you have to know three different tools for one job, etc. I love unix pipelines but for this use case I can't help feeling that the replace tool should be able to do the directory walking.