Jan 26 2008

找到包含php文件的目录

Category: 技术ssmax @ 23:17:03

由于空间的php.ini要求放到所有包含php的子目录里面才行,写了一行命令执行,记录之。。。

find . -type f -iname "*.php" | sed "s/[^\/]*$//" | sort | uniq | xargs -i cp -f php.ini {}

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.