Skip to content

Instantly share code, notes, and snippets.

@sibelius
Last active January 24, 2022 11:27
Show Gist options
  • Save sibelius/d73c29d9d6ed75b2bf598ec0a5413264 to your computer and use it in GitHub Desktop.
Save sibelius/d73c29d9d6ed75b2bf598ec0a5413264 to your computer and use it in GitHub Desktop.
find old pkg to new pkg
find ./ -type f \( -iname \*.json -o -iname \*.js -o -iname \*.ts -o -iname \*.tsx \) -not \( -path "*/node_modules/*" -prune \) -exec sed -i '' "s/@old/@new/g" {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment