CleanSense 2018. 12. 19. 16:19
728x90

코드설명 : Linux sed 명령어



1
2
3
4
5
sed -'s/이전문자열/변경문자열/' 파일명
 
ex> sed -'s/ruby/apple/' ./*.xml
 
#해당 디렉토리의 모든 xml파일의 내용 중 ruby문자열을 apple로 변경 후 저장
cs


728x90