mysql 의 replace 명령어를 이용한 파일내용 일괄 수정
페이지 정보
작성자 차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 댓글 1건 조회 18,390회 작성일 12-10-08 12:23본문
mysql 의 replace 명령어를 이용한 파일내용 일괄 수정
find . -type f -name '*' -exec /usr/local/mysql/bin/replace oldcontent netcontent -- {} \;
find . -type f -name '*' -exec /usr/local/mysql/bin/replace oldcontent netcontent -- {} \;
find . -type f -name '*' -exec /usr/bin/replace oldcontent netcontent -- {} \;
perl 을 이용한 파일 일괄 변경
find . -name *.* -exec perl -p -i -e 's/old/new/g' {} \;
빨강색이 이전내용 파란색이 변경될 내용..
사이트 이전시 참 ..매우..유용하단말이야..^^
perl 을 이용한 파일 일괄 변경
find . -name *.* -exec perl -p -i -e 's/old/new/g' {} \;
빨강색이 이전내용 파란색이 변경될 내용..
사이트 이전시 참 ..매우..유용하단말이야..^^
댓글목록
차동박님의 댓글
차동박 쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 작성일
find . -type f -name 'php.ini' -exec /usr/bin/replace ';date.timezone =' 'date.timezone = Asia/Seoul' -- {} \;
find . -type f -name 'php.ini' -exec /usr/bin/replace 'short_open_tag = Off' 'short_open_tag = On' -- {} \;