@ -1,6 +1,7 @@
+++
title = "Raft共识协议的一些细节"
date = 2022-10-13
draft = true
[taxonomies]
tags=["Raft","分布式"]
@ -4,7 +4,11 @@ date = 2022-09-15
tags=["linux"]
### 带进度的wc
### 带进度的wc -l
```bash
awk 'BEGIN {T=0} (T!=systime()) { printf "%s %s\n",NR,$0 ; T=systime()} END { print NR}'
```
#### 使用
cat file |awk 'BEGIN {T=0} (T!=systime()) { printf "%s %s\n",NR,$0 ; T=systime()} END { print NR}'