#!/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