Windows BATスクリプトでヒアドキュメントもどき batch file ( echo hoge echo piyo echo puyo echo fuga echo gaoh ) | sort output $ ( echo hoge echo piyo echo puyo echo fuga echo gaoh ) | sort fuga gaoh hoge piyo puyo