## 1、
### 1.1 、替换
~~~
:%s/this*/that/g
:%s/\\"//g
~~~
~~~
# 删除空格 换行 回车
:%s/\s//g
:%s/\r//g
:%s/\n//g
~~~
### 1.2
~~~
vimdiff a.txt b.txt
:set enc=utf8
:set encoding=utf-8
~~~
## 2、grep awk
~~~
grep 'patternOne' your.log |awk '{print $12" " $8 " "$5}' | sort -rn|head -n 12
~~~