From df18165dfc5c68c49f726fe89343d931761a6884 Mon Sep 17 00:00:00 2001 From: JimZhang Date: Thu, 8 Dec 2022 10:51:56 +0800 Subject: [PATCH] docs: linux, flink --- content/posts/Raft-Consensus-Algorithm.md | 1 + content/posts/linux-command.md | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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