对我来说,mdfind没有找到所有的结果或匹配。
从同一个目录执行:
grep "https://payout" -R .
./withdrawal.wsdl: <soap:address location="https://www.api.com/8001/Customer.asmx" />
./withdrawal.wsdl: <soap12:address location="https://www.api.com/8001/Customer.asmx" />
./withdrawal.wsdl: <http:address location="https://www.api.com/8001/Customer.asmx" />
./withdrawal.wsdl: <http:address location="https://www.api.com/8001/Customer.asmx" />
mdfind "https://payout" -onlyin .没有隐藏的东西:
ls -Ol withdrawal.wsdl
-rw-r--r-- 1 username staff - 21637 Apr 21 23:00 withdrawal.wsdl我在多个案例中都经历过这种情况,但没有找到任何原因。有人有解释吗?
发布于 2017-04-21 21:33:56
不是虫子。
mdfind只能搜索已被Spotlight索引的文件。对于要索引的文件,需要有一个Spotlight导入器作为其文件类型。除非您已经显式地为WSDL文件安装了索引器,否则这些文件不太可能被索引。
https://stackoverflow.com/questions/43552181
复制相似问题