ls /bin /usr/bin | sort | uniq | less

上面这条命令的实际效果是:

  1. 获得 ls /bin /usr/bin 的 output
  2. 将上述 output 进行 sort (排序),并去掉重复项 (uniq)
  3. 将经过以上处理的 output 作为 less 命令的 input,输出在屏幕上

相反地,如果想输出重复项,使用以下命令:

ls /bin /usr/bin | sort | uniq -d | less

最新文章

  1. 【11-10】spring学习笔记-ApplicationContextAware
  2. Android编译过程中的碎碎念
  3. C#事件支持发布者/订阅者模式(观察者模式)
  4. JavaScript常用技巧总结(持续添加中...)
  5. [ 转] [Android]多式样ProgressBar
  6. Thinking in Java——笔记(5)
  7. css动画集合地址
  8. 反编译.net dll
  9. Beyond MySQL --Branching the popular database--转载
  10. handoff了解
  11. 06 MDB将数据和dataGridView1绑定
  12. Provisioning profile 浅析
  13. HTTP模拟工具【C#/Winform源码】、Json绑定TreeView控件、使用了MetroModernUI、RestSharp、Dapper.Net、Newtonsoft.Json、SmartThreadPool这几个主要开源框架
  14. Problem A: 让动物们叫起来吧!
  15. mybatis框架(4)---输入输出映射
  16. CentOS 7.0安装
  17. RuntimeError: Model class apps.users.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
  18. Python函数——命名空间与闭包
  19. Openlayer3之空间参考扩展
  20. 取消word中所有超链接

热门文章

  1. Milking Grid poj2185
  2. [CSP-S模拟测试]:引子(大模拟)
  3. leetcode 217. 存在重复元素 (python)
  4. 125、TensorFlow计算图的执行
  5. mysql.connector.errors.ProgrammingError: 1698 (28000): Access denied for user 'root'@'localhost'
  6. 配置最漂亮的PyCharm界面,Python程序员必备!
  7. 【ABAP系列】SAP ABAP中关于commit的一点解释
  8. 爬虫之requests 高级用法
  9. 利用三层交换机实现VLAN间路由(计算机网络中速率、带宽、吞吐量的概念)
  10. "CoolShell puzzle game" writeup