Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Gsub: A CLI tool for string substitutions in a directory (github.com/gabehardgrave)
1 point by wffurr on Nov 15, 2021 | hide | past | favorite | 1 comment


This tool presents itself as a much faster and ergonomic alternative to shell pipelines with sed.

e.g.

    rg foo --files-with-matches | xargs sed -i 's/foo/bar/g'
becomes

   gsub "foo" "bar"
And runs significantly faster.

I don't know if I'll install it, but it's an interesting concept.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: