centos 7.0系统 当没有匹配到要重命名的文件时候,rename报错解决办法
2017-10-25 14:46
686 查看
centos 7.0系统 当没有匹配到要重命名的文件时候,rename报错解决办法
在rename命令后面加上continue
-bash-4.4$ find ./ -name "*.gz.reading" | xargs -n1 rename ".reading" ""
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
-bash-4.4$ find ./ -name "*.gz.reading" | xargs -n1 rename ".reading" "" continue
-bash-4.4$ ls
在rename命令后面加上continue
-bash-4.4$ find ./ -name "*.gz.reading" | xargs -n1 rename ".reading" ""
rename: not enough arguments
Usage:
rename [options] expression replacement file...
Options:
-v, --verbose explain what is being done
-s, --symlink act on symlink target
-h, --help display this help and exit
-V, --version output version information and exit
For more details see rename(1).
-bash-4.4$ find ./ -name "*.gz.reading" | xargs -n1 rename ".reading" "" continue
-bash-4.4$ ls
相关文章推荐
- CentOS7.0硬盘安装(双系统win8.1+CentOS7)遇到的问题及解决办法
- 发布网站的时候系统找不到指定文件的解决办法!
- Windows XP安装CentOS 7.0 后开机没有XP启动项解决办法
- 启动avd manager的时候,提示“系统找不到指定文件”的一种解决办法
- crs自动清除日志的时候没有释放文件,bug17034444 的解决办法
- (32/64位系统)没有找到cxcore100.dll或者缺少*.dll文件的解决办法
- 真实的物理机安装Centos7系统后网卡只有lo没有eno1的解决办法:实际上是物理机未安装网驱动卡
- 逻辑卷上面创建文件系统并挂载下次启动没有自动挂载的解决办法
- centos编译ruby的时候ossl_pkey_ec.c文件错误的解决办法
- centos 中没有 ifcfg-eth0 配置文件的解决办法
- 安装linux系统之后,开机时没有Windows系统选项的解决办法(Ubuntu,Deepin,Centos,Redhat,Fedora)
- 项目开发的时候上传更新的文件覆盖源文件刷新浏览器没有变化解决办法
- pe模式安装win7(32位)的时候出现“安装程序无法定位现有系统分区,也无法创建新的系统分区”提示,网上很多对此问题没有很好的解决办法
- 关于CentOS安装了KDE桌面环境后系统没有声音的解决办法
- 在ArcGIS Server中用regsvcs注册服务器端扩展的动态链接库时候,出现没有强名称错误的解决办法
- 番茄花园/ghostxp等XP系统不能文件和打印机共享还有魔兽不能建主机的解决办法
- Visual Studio 2008不能创建数据库连接出现:未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。系统找不到指定的文件的解决办法
- 安装Apache时,系统找不到指定的文件 No installed service named "Apache2"的解决办法
- 系统中.exe可执行文件打不开手工解决办法
- 文件系统不同步问题resource is out of sync with the file system的解决办法