linux下使用xsel/xclip,mac下使用pbcopy/pbpaste 参考:http://oldratlee.com/post/2012-12-23/command-output-to-clip