LONDON BASED INTERNET DEVELOPER & CONSULTANT


This is my personal blog site containing a bit of what I do, and some more information about Web development. Thanks for dropping by!


READ MORE ABOUT ME

Archive for the ‘Uncategorized’Category

Test Page

13

07 2017

Find and replace files on mac

This blog is slowly becoming my cheat sheet.

Here is how I find and replace string recursively on directories. Very useful for translating sites, and more.

grep -rl kontakt plugins/ | xargs sed -i ‘s/kontakt/contact/g’

Here is the logic:

grep -rl oldstring directory/ | xargs sed -i ‘s/oldstring/newstring/g’

15

01 2014