find /home -iname ".htaccess" -exec grep -l "FollowSymLinks" {} \;
我是否将-SED添加到-exec中,以便我可以执行查找和替换:
+FollowSymLinks to +SymLinksIfOwnerMatch
答案 0 :(得分:2)
你可以这样做:
find /home -iname ".htaccess" -exec sed -i "s/FollowSymLinks/SymLinksIfOwnerMatch/g" {} \;