Linux / Debian – moreutils中的’小便’有什么作用?
发布时间:2020-12-13 18:33:31 所属栏目:Linux 来源:网络整理
导读:我最近发现了 ‘moreutils’ package in Debian (and Ubuntu).它是一组方便的unix工具. 其中一个命令是’小便’.手册页说: pee is like tee but for pipes. 然而,它是一个简短的手册页,I have filed a bug about it.有谁知道它的作用,如何使用它,为什么人们
我最近发现了
‘moreutils’ package in Debian (and Ubuntu).它是一组方便的unix工具.
其中一个命令是’小便’.手册页说:
然而,它是一个简短的手册页,I have filed a bug about it.有谁知道它的作用,如何使用它,为什么人们会使用它? 解决方法
这是你可以用小便做的:
seq 5 -1 1 > file cat file |pee 'sort -u > sorted' 'sort -R > unsorted' 所以小便使用shell管道而不是文件. bash不需要撒尿,它可以打开shell命令作为文件: cat file |tee >(sort -u > sorted) >(sort -R > unsorted) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |