add some utils.
Merge branch 'master' of github.com:yangchangming/shell