成都创新互联网站制作重庆分公司

Linux小技巧,一条命令实现查找文件和改名


命令如下:


  1. [root@aws ~]# mkdir jiaguwen
  2. [root@aws ~]# touch jiaguwen.txt jiaguwen2.txt jiaguwen3.txt
  3. [root@aws ~]# cd jiaguwen
  4. [root@aws jiaguwen]# ls
  5. jiaguwen2.txt jiaguwen3.txt jiaguwen.txt
  6. [root@aws jiaguwen]# ls*.txt| xargs -n1 -i{} mv{} {}_bak
  7. [root@aws jiaguwen]# ls
  8. jiaguwen2.txt_bak jiaguwen3.txt_bak jiaguwen.txt_bak


网页标题:Linux小技巧,一条命令实现查找文件和改名
本文网址:http://cxhlcq.com/article/pdsics.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部