linux-批量修改目录下后缀shell

#!/bin/bash
cd /opt
rename .sh .shell *.sh
echo "后缀修改成功"

原文地址:https://www.cnblogs.com/lingxia/p/5949745.html