diff --git a/update_readme.sh b/update_readme.sh index 74f4b86..0ddff82 100755 --- a/update_readme.sh +++ b/update_readme.sh @@ -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