import middle command http://dqn.sakusakutto.jp/2011/06/linux-head-tail.html