#!/bin/
bash#Create_Time 2019-08-06#use: small_wei
#查找并,批量修改文件后缀
#后缀为 .txt 修改为 .log
find /opt -name
"*.txt" |
awk -F
".txt" '{print $1}' |
while read i
do
mv ${i}.txt ${i}.log
done
转载于:https://www.cnblogs.com/small-wei/p/11307544.html
相关资源:JAVA上百实例源码以及开源项目
转载请注明原文地址: https://mac.8miu.com/read-59180.html