基本的に -n オプションでよい。でも Solaris でシェルだと \c を付けないとダメ。 123echo testecho -n testecho test\c クロスプラットフォームで動かすスクリプトは printf の方が良さそう。 12printf "test\n"printf test