您当前的位置: 首页 >  linux

江湖有缘

暂无认证

  • 0浏览

    0关注

    446博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Linux下shel脚本之批量修改文件扩展名

江湖有缘 发布时间:2021-04-30 14:14:01 ,浏览量:0

Linux下shel脚本之批量修改文件扩展名
  • 一、脚本要求
  • 二、脚本内容
  • 三、运行脚本

一、脚本要求 二、脚本内容 三、运行脚本

一、脚本要求 1.在/data/tmp/下的所有文件扩展名改为.py

二、脚本内容 1.查看要修改扩展名的目录

[root@control tmp]# ll
total 0
-rw-r--r--. 1 root root 0 Apr 30 14:06 file0.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file10.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file11.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file12.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file13.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file14.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file15.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file16.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file17.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file18.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 file19.txt
-rw-r--r--. 1 root root 0 Apr 30 14:06 f
关注
打赏
1665849170
查看更多评论
立即登录/注册

微信扫码登录

0.0366s