Categories
Linux Mastering Development

how to run `find -exec` inside bash function — problem escaping characters and unexpected end of file

I want to make it easier to run this kind of command: find . -type f -exec sed -i ‘s|wpp-splash|wpp_splash|g’ {} \; so I created a function in my .bashrc to shorten it: function sedall() { find . -type f -exec sed -i ‘s|$1|g’ {} \; } this way I can do sedall wpp-splash|wpp_splash But […]