Skip to content

Instantly share code, notes, and snippets.

@lazevedo
Last active January 27, 2017 17:04
Show Gist options
  • Save lazevedo/f96e1a10af1678ea1e2f24e0f3061bf6 to your computer and use it in GitHub Desktop.
Save lazevedo/f96e1a10af1678ea1e2f24e0f3061bf6 to your computer and use it in GitHub Desktop.
Renomeação de componentes
# sintaxe para OSX
# cd src/app/common ou cd src/app/components
cp -R old-component new-component
cd new-component
rename 's/old-component/new-component/g'
sed -i '' -- 's/old-component/new-component/g' new-component.*
sed -i '' -- 's/oldComponent/newComponent/g' new-component.*
sed -i '' -- 's/OldComponent/NewComponent/g' new-component.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment