Skip to content

Instantly share code, notes, and snippets.

@benaskins
Created November 10, 2008 04:31
Show Gist options
  • Save benaskins/23417 to your computer and use it in GitHub Desktop.
Save benaskins/23417 to your computer and use it in GitHub Desktop.
Namespace all controllers
for UNIT in `ls app/controllers`
do
sed s/class\ /class\ Admin::/g $UNIT > app/controllers/admin/$UNIT
rm app/controllers/$UNIT
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment