문자열바꾸기1 Articles

  1. 2008/06/30 파일에서 특정문자열 바꾸기
find ./ -type f \( -iregex ".*\.php" -o -iregex ".*\.html" -o -iregex ".*\.css" -o -iregex ".*\.htm" \) -exec perl -p -i -e 's|DOCUMENT_ROOT|_SERVER\[DOCUMENT_ROOT\]|g' {} \;