Hello, 大家好, 我是爱吃香蕉的猴子,记录工作中工具的细节
1、 清除空格: %s/\s+KaTeX parse error: Undefined control sequence: \s at position 17: …/ 行尾空格: \̲s̲\+
行首空格: ^+\s+
2、 查看格式问题: set list
3、比如,要将目录/modules(绝对路径)下面所有文件中的zhangsan都修改成lisi,这样做:
sed -i “s/zhangsan/lisi/g” grep zhangsan -rl /modules
4、单个文件: sed -i ‘s/Search_String/Replacement_String/g’ Input_File
5、adb reboot fastboot
fastboot flash boot boot.img
fastboot reboot
echo 1 > input0/enable
win 10下linux项目mode 不同:
git config --add core.filemode false
vim下可以这样写入tab键:ctr+v+i,会写入一个tab键
Code的搬运工V1.0