From 5870fbd0f7c0c0f7abf4a5bcd24c6f023e66c053 Mon Sep 17 00:00:00 2001 From: Easy Date: Wed, 27 Mar 2024 20:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++++ words.sh | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 words.sh diff --git a/README.md b/README.md index bc46eaa..1b10806 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # 《一人企业方法论》第二版 +## 对第一版的改进 + +1. 从长文到一本近6万字的小书,从有感而发的分享到两年迭代而得的完整方法论 +1. 不再局限在独立开发,发展为更为通用的方法论,即使不懂技术的读者也可用于经营副业 + ![](./src/images/opb-book-cover.jpg) ## 作者信息 diff --git a/words.sh b/words.sh new file mode 100755 index 0000000..3c10c3e --- /dev/null +++ b/words.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# 设置mdbook的源文件目录路径 +mdbook_src_dir="src" + +# 初始化字符数变量 +total_chars=0 + +# 遍历目录下的所有.md文件并统计字符 +for file in $(find "$mdbook_src_dir" -name '*.md'); do + chars=$(wc -m <"$file") + total_chars=$((total_chars + chars)) +done + +# 输出总字符数 +echo "Total characters: $total_chars"