Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
find /home -iname ".htaccess" -exec grep -l "FollowSymLinks" {} \;
我是否将 SED 添加到 -exec 中,以便可以查找和替换:
+FollowSymLinks to +SymLinksIfOwnerMatch
你可以做:
find /home -iname ".htaccess" -exec sed -i "s/FollowSymLinks/SymLinksIfOwnerMatch/g" {} \;