本文根据 Devhints / Shell: named pipes 翻译。代码示例及版本范围沿用原文。
命名管道
diff <(ls ./old) <(ls ./new)
这会创建一个虚拟文件,其内容为……的输出结果 ls ./old.
参考资料
- 命名管道 (wikipedia.org)
本文根据 Devhints / Shell: named pipes 翻译。代码示例及版本范围沿用原文。
diff <(ls ./old) <(ls ./new)
这会创建一个虚拟文件,其内容为……的输出结果 ls ./old.