부제: 파일을 열지 않고 문자열을 바꾸거나 특정 줄만 뽑기sed 's/ERROR/ERR/' app.log # 줄마다 첫 매치만 치환sed 's/ERROR/ERR/g' app.log # 한 줄의 여러 개도 전부 (g)sed -n '2,5p' app.log # 2~5번째 줄만 출력$ sed -n '2,4p' app.log2026-07-08 10:00:02 WARN request id=2 path=/upload status=4132026-07-08 10:00:03 ERROR request id=3 path=/chat status=5002026-07-08 10:00:04 INFO request id=4 path=/chat status=200sed는 스트림 편집기다. s/찾을..