LINUX & 技术 17 Apr 2007 10:54 am

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” 来解决

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply