[TYPO3-50-general] Old names in FLOW3 code

Michael Feinbier typo3 at feinbier.net
Tue Mar 25 19:38:35 CET 2008


Hi everyone!

Robert Lemke schrieb:
> PS: If you need to batch-rename your class files, this little bash 
> script might become handy:
> 
> #!/bin/bash
> for i in `find . -name T3_*.php`; do
>     BASENAME=`basename $i`
> #    echo `dirname $i`/${BASENAME} `dirname $i`/F3_${BASENAME:3}
>     svn --force move `dirname $i`/${BASENAME} `dirname $i`/F3_${BASENAME:3}
> done

I slightly modified this script to simply change every occurance of 
"T3_" to "F3_" in all your files.
It worked fine to me but a backup should be done before ;)

Of course you can combine it with roberts rename script.

#!/bin/bash
for i in `find . -name T3_*.php`; do
     cat "$i" | sed 's/T3_/F3_/g' > $i.f3
     mv -f "$i.f3" "$i"
done

cheers
Micha

-- 
kind regards from Bielefeld

Michael

Error 404: The city you are looking for doesn't exist.
http://www.denkweite.de | http://www.feinbier.net


More information about the TYPO3-project-5_0-general mailing list