为什么grep默认不忽略二进制文件?
的联机帮助页对标志进行了如下grep描述-I: -I Ignore binary files. This option is equivalent to --binary-file=without-match option. 它还说明了二进制文件: --binary-files=value Controls searching and printing of binary files. Options are binary, the default: search binary files but do not print them; without-match: do not search binary files; and text: treat all files as text. 我想不出要关心二进制文件中的匹配的情况。如果存在这种情况,那么肯定一定是例外而不是常规。为什么grep默认情况下不忽略二进制文件而不是要求设置此标志呢?