sed '$ d' -i 파일명
root@localhost:~# cat foo.txt a b c root@localhost:~# sed '$ d' foo.txt a b root@localhost:~# sed '$ d' foo.txt -i root@localhost:~# cat foo.txt a b
CC-BY-SA 3.0 · Powered by MediaWiki
개인정보처리방침 · ABOUT