2014-11-16 ターミナルで標準出力をファイルに出力する Mac #{コマンド} > #{ファイル名}という感じで > をつかえば良いようです。 なので、 echo hello > hello.txtとかを実行すれば、 helloと書かれた hello.txt が生成されます。