Last active
June 14, 2018 03:29
-
-
Save joeswann/e541b5ab51b9d4b65d55af2f57e0c47a to your computer and use it in GitHub Desktop.
Revisions
-
Joe Swann revised this gist
Jun 14, 2018 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ # Note, works best if your engine name isn't reserved # Rename in files find ~/www/rails/engines/old_engine/ -type f | xargs sed -i s/Old/New/g find ~/www/rails/engines/old_engine/ -type f | xargs sed -i s/old/new/g # Remove -n to run command find ~/www/rails/engines/old_engine -type f -name '*' -print0 | xargs -0 rename -n 's/(.*)old\.(.*)/$new\.$2/g'; -
Joe Swann created this gist
Jun 14, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # Note, works best if your engine name isn't reserved # Rename in files find ~/www/lonely/engines/old_engine/ -type f | xargs sed -i s/Old/New/g find ~/www/lonely/engines/old_engine/ -type f | xargs sed -i s/old/new/g # Remove -n to run command find ~/www/lonely/engines/old_engine -type f -name '*' -print0 | xargs -0 rename -n 's/(.*)old\.(.*)/$new\.$2/g';