Skip to content


find命令中*号的疑惑

当前目录下有abc.html,def.html,ghi.html
使用find . -name *.html会报 “path must precede expression”错误
因为find -name 后面只能指定一個 name,执行上面的命令会解析成
-name abc.html,def.html,ghi.html 所以就会报错

可以使用 find . -name “*.html” 来解决

Posted in Linux 命令, 技术.

Tagged with .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.