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