ps -ef | grep docker

等价于 ps -ef &> >(grep docker)

 

cat a.log | tee b.txt

等价于

cat a.log &> >(tee b.txt)

 

 

cat a.log | md5sum  > a.sum

为了将过程打印到屏幕

cat a.log | tee >(md5sum > a.sum)

从而

cat a.log |tee >(md5sum > a.sum) > b.txt

既可以对数据流做md5sum, 又可以做重定向

 cat a.log |tee >(md5sum > a.sum) | tee b.txt

md5sum + 屏幕打印 + 写文件

相关文章:

  • 2022-02-26
  • 2021-09-02
  • 2022-12-23
  • 2021-08-11
  • 2021-08-08
  • 2022-02-24
  • 2021-10-17
猜你喜欢
  • 2021-09-27
  • 2022-01-19
  • 2022-12-23
  • 2022-02-09
  • 2021-12-19
相关资源
相似解决方案