sed

스크립트 방식으로 텍스트를 편집합니다. 같이 보기: awk, ed. 더 많은 정보: https://www.gnu.org/software/sed/manual/sed.html.

{{command}} | sed 's/apple/mango/g'

{{command}} | sed {{[-E|--regexp-extended]}} 's/(apple)/\U\1/g'

sed {{[-i|--in-place]}} 's/apple/mango/g' {{경로/대상/파일}}

{{command}} | sed {{[-f|--file]}} {{경로/대상/스크립트.sed}}

{{command}} | sed {{[-n|--quiet]}} '1p'

sed {{[-i|--in-place]}} 1d {{경로/대상/파일}}

sed {{[-i|--in-place]}} '1i\your new line text\' {{경로/대상/파일}}