From 4e21fb0e95ae0dfc5f7b5c8155052ee9b3cc9edd Mon Sep 17 00:00:00 2001 From: smallkun <smallerkun@foxmail.com> Date: Thu, 6 Mar 2025 22:45:36 +0800 Subject: [PATCH] Auto commit --- .../源码/C语言(四)/combine_c_files.sh | 32 ------------------- .../源码/{C语言(三) => }/combine_c_files.sh | 0 2 files changed, 32 deletions(-) delete mode 100644 2207/天天乐学答案/源码/C语言(四)/combine_c_files.sh rename 2207/天天乐学答案/源码/{C语言(三) => }/combine_c_files.sh (100%) diff --git a/2207/天天乐学答案/源码/C语言(四)/combine_c_files.sh b/2207/天天乐学答案/源码/C语言(四)/combine_c_files.sh deleted file mode 100644 index 4120896..0000000 --- a/2207/天天乐学答案/源码/C语言(四)/combine_c_files.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -# ����ļ��� -output_file="combined.md" - -# ��ջ�����ļ� -> "$output_file" - -# ���� 1.c �� 20.c -for i in {1..20}; do - file="${i}.c" - - # ����ļ��Ƿ���� - if [[ -f "$file" ]]; then - # ���ӱ��� - echo "### C����-${i}" >> "$output_file" - - # ���Ӵ���鿪ʼ - echo '```c' >> "$output_file" - - # ���ļ�����ֱ���ӵ�����ļ�����Ϊ GB2312 ���룩 - cat "$file" >> "$output_file" - - # ���Ӵ������� - echo '```' >> "$output_file" - - # ����һ������ - echo "" >> "$output_file" - else - echo "�ļ� $file �����ڣ�������" - fi -done \ No newline at end of file diff --git a/2207/天天乐学答案/源码/C语言(三)/combine_c_files.sh b/2207/天天乐学答案/源码/combine_c_files.sh similarity index 100% rename from 2207/天天乐学答案/源码/C语言(三)/combine_c_files.sh rename to 2207/天天乐学答案/源码/combine_c_files.sh