shell 行末の空白を削除する
sedのワンライナーでできます。$ sed -e 's/*$//'emacsてもM-x delete-trailing-...
shell
shell
redhat
ソフトウェア
ソフトウェア
shell
shell
shell
shell
shell