Skip to content

Instantly share code, notes, and snippets.

@josharcheruk
Created June 29, 2015 19:51
Show Gist options
  • Save josharcheruk/5dbfa4c69f6baf20b958 to your computer and use it in GitHub Desktop.
Save josharcheruk/5dbfa4c69f6baf20b958 to your computer and use it in GitHub Desktop.
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' *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment