Recursive search and replace

2018

May

21

I had a need to recursively search and replace for a particular string within a git repository. A combination of find and sed is all that is needed, but one must be careful to avoid modifying the contents of the ".git" directory (I accidentally did this, and effectively destroyed my …

Read on...

Creating an application for a website on OSX

2017

September

20

I wanted to get a desktop application for a website that doesn't provide one, and had success with https://github.com/eladnava/applicationize. This worked a treat for my local Home Assistant instance, so now I don't need to open a tab in my web-browser.

Read on...

Vim search and replace across many files

2015

December

3

A powerful combination of commands for search and replace across multiple files with Vim. http://vim.wikia.com/wiki/Opening_multiple_files_from_a_single_command-line http://vim.wikia.com/wiki/Search_and_replace_in_multiple_buffers :arg **/*.cpp :argdo %s/pattern/replace/ge | update

Read on...