我阅读了wc命令的手册,但无法理解该参数的解释。请帮忙。
官方解释如下:
--files0-from=F
read input from the files specified by NUL-terminated names in file F; If
F is - then read names from standard input
Run Code Online (Sandbox Code Playgroud)
read input from the files specified ... in file F
不要wc
在命令行上提供文件名,而是从文件 F 中读取它们。
NUL-terminated names
文件 F 中的文件名必须用 NUL 字符(字节值 0)分隔,而不是换行符、制表符或空格。这是为了正确处理包含空格的文件名。
If F is - then read names from standard input
文件名可以从可以从管道馈送的标准输入中读取,而不是指定真实的文件 F。在这种情况下,文件名仍应以 NUL 结尾。一个典型的例子是find ... -printf0 | wc ... --files0-from=-
归档时间: |
|
查看次数: |
3691 次 |
最近记录: |