用find命令查找时
例如命令

  

会出错,查文档找出
find: paths must precede expression
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec]
[path…] [expression]
This happens because *.c has been expanded by the shell resulting in find
actually receiving a command line like this:

  

   find . -name bigram.c code.c frcode.c locate.c -print

That command is of course not going to work. Instead of doingthings
this way, you should enclose the pattern in quotes or escape the wildcard:

     $ find . -name '*.c' -print

$ find . -name \*.c -print
   即出现这个提示是因为星号代表为当前目录下所有的文件,然后被当做shell展开
这就是网上说的多文件的查找的时候需要增加单引号

最新文章

  1. 通过寄生组合式继承创建js的异常类
  2. iis 使用 LocalDB 报错:provider: SQL Network Interfaces, error: 50
  3. archlinux 下 nignx + php 出现 no input file specified
  4. ASP.NET一些公共方法commTools
  5. PHP用正则批量替换Img中src内容,用正则表达式获取图片路径实现缩略图功能
  6. IEEE 802.11 标准列表
  7. QT visual stuido 集成插件不能打开ui文件的解决方法(去掉xml的UTF8标记)
  8. 字符串匹配算法之Sunday算法
  9. javaWeb学习总结(8)- JSP属性范围(5)
  10. Swarm 如何实现 Failover?- 每天5分钟玩转 Docker 容器技术(98)
  11. Storm业务功能
  12. 初识Windows服务 C#
  13. for循环之后的return
  14. Jenkins配置从节点
  15. Linux中Zabbix4.0的搭建
  16. 第30月第3天 iOS图标icon自动生成和自定义尺寸
  17. [原创]找不到mswinsck.ocx的解决办法
  18. codeforces 351 div2 C. Bear and Colors 暴力
  19. VS 附加不上w3wp.exe
  20. 2017-2018-1 20155231 《信息安全系统设计基础》实现mypwd

热门文章

  1. vue解决启动报错cjs loader.js Error: Cannot find module '../config'问题
  2. 文件上传时出现 Processing of multipart/form-data request failed. Unexpected EOF read on the socket错误
  3. java之代码复用
  4. 给eclipse设置自动补全的步骤
  5. 5.Dubbo原理解析-代理之Javassist字节码技术生成代理 (转)
  6. 对负载均衡的理解及nginx负载均衡的配置
  7. Bootstrap3基础 page-header 标题下加分割线
  8. luogu3426 [POI2005]SZA-Template 后缀树
  9. spring初体验 一之helloworld
  10. Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required