sed (Stream EDitor)
문자열 치환
Usage
sed -n -e 'command' [input file]
sed [OPTION]… {script-only-if-no-other-script} [input-file]…sed -n: 기본 출력을 표시하지 않음. suppress automatic printing of pattern space
sed –quiet
sed –silentsed –debug: annotate program executionsed -e script: 스크립트 추가. add the script to commands to be executed
sed –expreession=scriptsed -f script-file: 스크립트를 파일에서 불러옴. add the contents of script-file to the commands to be executed
sed –file=script-filesed –follow-symlinks: follow symlinks when processing in place-i원본 파일 직접 수정-i.bak원본 파일 직접 수정 및 백업 작성