From 0da0bfe7061248e7b9d003578bea8a4f900bb61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=ED=98=84=EC=9E=AC?= <55138387+hangooksaram@users.noreply.github.com> Date: Wed, 7 May 2025 16:44:26 +0900 Subject: [PATCH] updates --- Algorithm/ag_test5.md | 1 - Algorithm/ag_test6.md | 1 + bash/update-readmes.sh | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 Algorithm/ag_test5.md create mode 100644 Algorithm/ag_test6.md diff --git a/Algorithm/ag_test5.md b/Algorithm/ag_test5.md deleted file mode 100644 index 9f3b1bc..0000000 --- a/Algorithm/ag_test5.md +++ /dev/null @@ -1 +0,0 @@ -# this is test \ No newline at end of file diff --git a/Algorithm/ag_test6.md b/Algorithm/ag_test6.md new file mode 100644 index 0000000..b943cf4 --- /dev/null +++ b/Algorithm/ag_test6.md @@ -0,0 +1 @@ +# this is test diff --git a/bash/update-readmes.sh b/bash/update-readmes.sh index 94affd8..099474d 100644 --- a/bash/update-readmes.sh +++ b/bash/update-readmes.sh @@ -5,7 +5,9 @@ while read file; do # md 파일만 처리 if [[ "$file" == *.md ]]; then # 첫 번째 # 헤더 추출 (파일 인코딩 UTF-8 가정) - title=$(grep -m 1 '^# ' "$file" | sed 's/^# //') + echo "Grep result:" + grep -m 1 '^# ' "$file" + title=$(grep -m 1 '^# ' "$file") # 타이틀이 없으면 파일명 사용 [ -z "$title" ] # 링크 생성