Skip to content

Instantly share code, notes, and snippets.

@josharcheruk
josharcheruk / Useful commands
Created June 29, 2015 19:51
Useful commands
## 4 step find and replace for get_iplayer wiki relative links to squarepenguin.co.uk format
sed -i '' 's,](,](\/wiki\/,g' * && sed -i '' 's,](/wiki/http,](http,g' * && sed -i '' 's,](/wiki/#,](#,g' * && sed -i '' 's,](\/wiki\/\/wiki\/,](\/wiki\/,g' *