Frontend Develope/Etc..

grep 문자열모두 치환

블루밍님 2018. 11. 16. 02:39

grep -R --files-with-matches '찾는문자열' ./ --null | xargs -0 perl -pi -e 's/찾는 문자열/변경문자열/'


grep -R --files-with-matches 'calladmin.net:444' ./ --null | xargs -0 perl -pi -e 's/calladmin.net:444/yeogiaen.com/'