常用shell命令 2011-01-01 六 Linux shell Linux常用命令备忘 1.查找大于100M的文件 find / -type f -size +100M 2.换行符替换为空格 sed ':label;N;s/\n/ /;t label' 3.在文本指定行首加空格 :10,20 s/^/ /g 在第10行知第20行每行前面加四个空格,用于缩进。 Top^ ------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------