파일내 문자 변경


- 폴더에서 문서검색 후 변경
find /data/pinetree -name test.xml -exec perl -pi -e 's/<"aaaa"\/>/<"bbbbb"\/>/g' {} \;

-vi 에서 찾아 바꾸기
:%s/aaa/kkk/g

댓글