linux命令---查找文件中的内容 [yang@localhost ~]$ cat 1.txt |egrep '123456789|second'-------匹配123456789或者second的行 first line:123456789012345678901234567890123456789012345678901234567890 second line:one two three four five six seven eight nine ten [yang@localh
linux vi查找命令 div id="article_content" class="article_content"> 使用vi编辑器编辑长文件时,常常是头昏眼花,也找不到需要更改的内容. 这时,使用查找功能尤为重要. 方法如下: www.2cto.com 1.命令模式下输入“/字符串”,例如“/Section 3”. 2.如果查找下一个,按“n”即可. 要自当前光标位置向上搜索,请使用以下命令: /pattern E