2016-08-05 変数に代入したコマンド文字列を実行する sh sh cmd="" cmd=$cmd"cat 1.txt | " cmd=$cmd"sort | " cmd=$cmd"uniq > 2.txt" eval $cmd