如何用shell脚本遍历指定目录下的文件,并按后缀名分类

2025年03月20日 08:14
有1个网友回答
网友(1):

#!/bin/bash
while true
do

if [ -f /root/*.warming ];then
cp /root/xxx.conf /tmp
fi
done