Bareword "mp4" not allowed while "strict subs" in use at (user-supplied code).
2021/10/24 7:11:25
本文主要是介绍Bareword "mp4" not allowed while "strict subs" in use at (user-supplied code).,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1、查看内核
root@PC1:~/GS/lihua/test# hostnamectl Static hostname: PC1 Icon name: computer-vm Chassis: vm Machine ID: dc50d4dc469c45ea8a2a10f39caa45e9 Boot ID: 28566ddce150405d8573cdbbd676465d Virtualization: vmware Operating System: Ubuntu 20.04.3 LTS Kernel: Linux 5.11.0-38-generic Architecture: x86-64
2、问题, 在红帽、centos中不会出现这样的问题
root@PC1:~/GS/lihua/test# ls a.mp4 dup1.mp4 dup2.mp4 dup4.mp4 root@PC1:~/GS/lihua/test# rename mp4 txt * Bareword "mp4" not allowed while "strict subs" in use at (user-supplied code).
3、经查询找到的解决方法,类似sed的替换命令
root@PC1:~/GS/lihua/test# ls a.mp4 dup1.mp4 dup2.mp4 dup4.mp4 root@PC1:~/GS/lihua/test# rename 's/mp4/txt/' * root@PC1:~/GS/lihua/test# ls a.txt dup1.txt dup2.txt dup4.txt
参考:http://cssor.com/linux-rename-files.html
这篇关于Bareword "mp4" not allowed while "strict subs" in use at (user-supplied code).的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-06-29易优CMS安装常见问题汇总-icode9专业技术文章分享
- 2024-06-28易优新手必读安装教程-icode9专业技术文章分享
- 2024-06-28忘记eyoucms后台密码怎么办?-icode9专业技术文章分享
- 2024-06-26终极指南:Scrum中如何设置需求优先级
- 2024-06-26AI大模型企业应用实战(25)-为Langchain Agent添加记忆功能
- 2024-06-26小白家庭 nas 搭建方案-icode9专业技术文章分享
- 2024-06-23AI大模型企业应用实战(14)-langchain的Embedding
- 2024-06-23AI大模型企业应用实战(15)-langchain核心组件
- 2024-06-23AI大模型企业应用实战(16)-langchain核心组件
- 2024-06-23AI 大模型企业应用实战(06)-初识LangChain