find: paths must precede expression问题及解决
2024-10-18 22:34:57
用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展开
这就是网上说的多文件的查找的时候需要增加单引号
最新文章
- 通过寄生组合式继承创建js的异常类
- iis 使用 LocalDB 报错:provider: SQL Network Interfaces, error: 50
- archlinux 下 nignx + php 出现 no input file specified
- ASP.NET一些公共方法commTools
- PHP用正则批量替换Img中src内容,用正则表达式获取图片路径实现缩略图功能
- IEEE 802.11 标准列表
- QT visual stuido 集成插件不能打开ui文件的解决方法(去掉xml的UTF8标记)
- 字符串匹配算法之Sunday算法
- javaWeb学习总结(8)- JSP属性范围(5)
- Swarm 如何实现 Failover?- 每天5分钟玩转 Docker 容器技术(98)
- Storm业务功能
- 初识Windows服务 C#
- for循环之后的return
- Jenkins配置从节点
- Linux中Zabbix4.0的搭建
- 第30月第3天 iOS图标icon自动生成和自定义尺寸
- [原创]找不到mswinsck.ocx的解决办法
- codeforces 351 div2 C. Bear and Colors 暴力
- VS 附加不上w3wp.exe
- 2017-2018-1 20155231 《信息安全系统设计基础》实现mypwd
热门文章
- vue解决启动报错cjs loader.js Error: Cannot find module '../config'问题
- 文件上传时出现 Processing of multipart/form-data request failed. Unexpected EOF read on the socket错误
- java之代码复用
- 给eclipse设置自动补全的步骤
- 5.Dubbo原理解析-代理之Javassist字节码技术生成代理 (转)
- 对负载均衡的理解及nginx负载均衡的配置
- Bootstrap3基础 page-header 标题下加分割线
- luogu3426 [POI2005]SZA-Template 后缀树
- spring初体验 一之helloworld
- Fix Python 3 on Windows error Microsoft Visual C++ 14.0 is required