diff --git a/content/posts/Raft-Consensus-Algorithm.md b/content/posts/Raft-Consensus-Algorithm.md index 2486211..821361a 100644 --- a/content/posts/Raft-Consensus-Algorithm.md +++ b/content/posts/Raft-Consensus-Algorithm.md @@ -1,6 +1,7 @@ +++ title = "Raft共识协议的一些细节" date = 2022-10-13 +draft = true [taxonomies] tags=["Raft","分布式"] +++ diff --git a/content/posts/linux-command.md b/content/posts/linux-command.md index dbdb256..d07dabb 100644 --- a/content/posts/linux-command.md +++ b/content/posts/linux-command.md @@ -4,7 +4,11 @@ date = 2022-09-15 [taxonomies] tags=["linux"] +++ -### 带进度的wc +### 带进度的wc -l ```bash awk 'BEGIN {T=0} (T!=systime()) { printf "%s %s\n",NR,$0 ; T=systime()} END { print NR}' +``` +#### 使用 +```bash +cat file |awk 'BEGIN {T=0} (T!=systime()) { printf "%s %s\n",NR,$0 ; T=systime()} END { print NR}' ``` \ No newline at end of file