在 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 comm
or 时man paste
,文档说参数确实是文件。
题:
是否为<(cat file1 | sort)
和创建了中间临时文件(在 TEMP 文件系统或较慢磁盘上的其他地方)<(cat file2 | sort)
?
这个<( )
魔法叫什么名字?(查找其文档)
它是特定于 bash 的还是跨其他 shell 工作的?