Skip to content

Commit

Permalink
Update update_readme.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeHyungJoo authored Jan 29, 2024
1 parent 8827aed commit 92a0097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ file_count=$(git ls-files '**/*.cpp' '**/*.cs' | wc -l)
echo "Total number of .cpp and .cs files: $file_count"

# Update file count after "Total Count of Solved" in README.md
awk -v count="$file_count" '/Total Count of Solved/ { sub(/[0-9]+/, count); } 1' README.md > temp && mv temp README.md
awk -v count="$file_count" '/Total Count of Solved : / { sub(/[0-9]+/, count); } 1' README.md > temp && mv temp README.md

0 comments on commit 92a0097

Please sign in to comment.