sed질문

acidd15의 이미지

sed 's/ / /' somefile > somefile

이렇게 하니 somefile 이 텅~ 비어 버리네요...옵션으로 한방으로는 안되나요?

advanced의 이미지

sed -i '/regexp1/regexp2/' filename

acidd15의 이미지

extra characters at the end of p command

이런 에러가..

acidd15의 이미지

걍 두방으로 해결했습니다 --;

xwizardx의 이미지

awk나 nawk을 쓰는 것도 괜찮을듯 보입니다..