小编Tha*_*wda的帖子

"<( cmd )" 模式在 bash 中是如何工作的?

在 bash 中,我使用的参数看起来像

paste <(cat file1 | sort) <(cat file2 | sort)
Run Code Online (Sandbox Code Playgroud)

或者

comm <(cat file1 | sort) <(cat file2 | sort)
Run Code Online (Sandbox Code Playgroud)

当我检查man commor 时man paste,文档说参数确实是文件。

题:

  1. 是否为<(cat file1 | sort)和创建了中间临时文件(在 TEMP 文件系统或较慢磁盘上的其他地方)<(cat file2 | sort)

  2. 这个<( )魔法叫什么名字?(查找其文档)

  3. 它是特定于 bash 的还是跨其他 shell 工作的?

linux command-line bash

11
推荐指数
2
解决办法
1027
查看次数

标签 统计

bash ×1

command-line ×1

linux ×1