Skip to content

Instantly share code, notes, and snippets.

@liamegan
Created July 24, 2019 23:22
Show Gist options
  • Save liamegan/c1981de3e75e0ef057f1320dc165d7e9 to your computer and use it in GitHub Desktop.
Save liamegan/c1981de3e75e0ef057f1320dc165d7e9 to your computer and use it in GitHub Desktop.
```
find -D 'exec' LOCATION -name PATTERN -exec sed -i 's/A/B/g' '{}' +
```
So for example
```
find -D 'exec' ./deploy -name '*.html' -exec sed -i 's/https:\/\/www.pokemontcg.com\//http:\/\/pokemontcg.wethe.work\//g' '{}' +
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment