We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

zingo on 05/28/08


Tagged

php svn cakephp cli


Versions (?)


SVN rename all your CakePHP views from thtml to ctp


Published in: Bash 


URL: http://cricava.com/blogs/index.php?blog=6&title=svn-rename-all-your-cakephp-views-from-t

Recursively SVN rename (move) all thtml-files to ctp-files . Fires this up in CakePHPs /views path.

  1. for file in `find . -name "*.thtml"` ; do svn mv $file `echo $file | sed s/\.thtml/\.ctp/` ; done

Report this snippet 

You need to login to post a comment.