find . -name '.htaccess' -type f -exec perl -pi -e 's/local\/sites/srv\/www/g' {} \;

Find all files with the name .htaccess, thats a real file, then execute a line line perl script to replace local/sites with srv/www (using \ to escape the /)


 
server/tips.txt · Last modified: 2010/03/08 10:33 by tarasis
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki