add magic command tail for small files, function file_head, file_tail
finish function file_tail