Blogger Information
Blog 41
fans 0
comment 1
visits 40044
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Linux下shell批量修改文件后缀名
yeyiluLAMP
Original
4226 people have browsed it
  1.  用rename命令修改后缀名,这个是最简单最省事的方法

    在txt目录下创建10个后缀名为.txt的文件

    snipaste20171124_231348.png

    snipaste20171124_230845.png

    将后缀名批量修改为.log的文件

    snipaste20171124_230845.png

    2.用for、sed和mv修改后缀名
    现在再把 .log的文件批量修改为.txt的文件


    snipaste20171124_231148.png

    通用的方法,不过稍微麻烦点

    将后缀名为jpeg的文件批量修改为.jpg的文件

    snipaste20171125_143737.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!