Monday, September 21, 2009

Replace/overwrite files in a hierarchy

I needed to replace a file in a hierarchy with a new version:-
Here is a script which works in most shell variants bash, zsh etc but apparently not csh.

for f in */include/dbcommon.php; do;cp dbcommon.php $f; done

Labels: , ,

0 Comments:

Post a Comment

<< Home