From 13abb8ed50f1e71f1a11f10eb520929bba6e3fe1 Mon Sep 17 00:00:00 2001 From: smallkun <smallerkun@foxmail.com> Date: Fri, 7 Mar 2025 00:00:47 +0800 Subject: [PATCH] Auto commit --- .../源码/C语言-1/combine_c_files.sh | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100755 2207/天天乐学答案/源码/C语言-1/combine_c_files.sh diff --git a/2207/天天乐学答案/源码/C语言-1/combine_c_files.sh b/2207/天天乐学答案/源码/C语言-1/combine_c_files.sh deleted file mode 100755 index 4120896..0000000 --- a/2207/天天乐学答案/源码/C语言-1/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