This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 遍历 sy 目录下所有以.sy结尾的文件
for file in sy/*.sy; do
# 检查是否真的存在.sy文件,避免无匹配时的错误
if [ -f "$file" ]; then
# 使用mv命令重命名文件,将.sy后缀改为.c
mv -- "$file" "${file%.sy}.c"
fi
done