shell脚本批量增加后缀名,bat脚本批量去除后缀名
由于需求需要,需要在linux系统批量给文件加上后缀名,然后拷贝到Windows上,在批量删除增加的后缀名,特写了两个脚本程序去实现。1.shell脚本#!/bin/bashfunction read_dir(){ for file in `ls $1` do if [ -d $1"/"$file ] then read_dir $1"/"$file else mv $1"/"$file $1"/"
原创
2020-05-20 18:02:28 ·
1120 阅读 ·
0 评论