替换字符串

for file in `ls *fin*.jpg`;do
    mv $file ${file/_finished/}
done
原文地址:https://www.cnblogs.com/vincenshen/p/6547984.html