skills:经常忘记的

版权声明:打劫来的原创!!未经允许可随便转载。【 May you do good and not evil. May you find forgiveness for yourself and forgive others. May you share freely,never taking more than you give. 】 https://blog.csdn.net/hunter___/article/details/87344025

1.数字增加/减小1:数字加减:普通模式下:ctrl+a(+) ctrl+x(-)

bug注意:中文输入法输入的数字无法使用。

2.大小写切换:~(shift+`) 

3.find 多种类型文件:

find  -name "*.html" -o -name "*.js" |xargs grep -i xxxx

-o后面的要加“”

4.grep"且"查找:

grep 字符串1 文件名| grep 字符串2|grep 字符串3|grep ...

grep "或", 满足多个关键字之一

grep -E "字符串1|字符串2|字符串3|"  文件名   或者

egrep  "字符串1|字符串2|字符串3|"  文件名

猜你喜欢

转载自blog.csdn.net/hunter___/article/details/87344025