GNUmd5sum
命令有两种模式:二进制模式和文本模式。我想区别仅在于如何处理换行符?我对吗?
在 GNU/Linux 上,这两种模式总是产生相同的结果,所以-b
和-t
选项的唯一用途是指示在文件名之前使用的标志(*
或)?
在什么情况下模式会产生不同的结果?在 Windows/MacOS 系统上?(这些平台的版本可用吗?)
如果我做
find . -exec echo {} +
Run Code Online (Sandbox Code Playgroud)
它在一行中打印所有路径,即命令echo
只执行一次。
但据man find
,
Run Code Online (Sandbox Code Playgroud)-exec command {} + ... the number of invocations of the command will be much less than the number of matched files. ...
似乎在某些情况下命令会被执行多次。我对吗?请举例说明。