You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
327 B
Markdown

+++
title = "一些linux命令"
date = 2022-09-15
[taxonomies]
tags=["linux"]
+++
### 带进度的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}'
```