2016-06-06 mysqlの結果をファイルに出力 mysql selectの結果をファイルに出力したい場合です。 -- 開始時 tee output.txt ←これだと現在のディレクトリになる select body from hoge notee -- 終了 以上です。