3 ms·
It is better to learn perl instead of sed/awk. It is much more powerful and cleaner than both of them: perl -pi -e 's{(.*?)foo_(.*?)path}{$1$2path}' app/view
by lisivka 11y ago
It is better to learn perl instead of sed/awk. It is much more powerful and cleaner than both of them:
perl -pi -e 's{(.*?)foo_(.*?)path}{$1$2path}' app/views/*/*