1
find /home -iname ".htaccess" -exec grep -l "FollowSymLinks" {} \;

Do I add SED into the -exec so that I can do a find and replace of:

 +FollowSymLinks to +SymLinksIfOwnerMatch
1
  • what did you already tried? Commented Nov 24, 2012 at 1:04

1 Answer 1

2

You can do:

find /home -iname ".htaccess" -exec sed -i "s/FollowSymLinks/SymLinksIfOwnerMatch/g" {} \;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.