linux常用 字符 查找命令 grep find cat locate 文本编辑命令vi
来源:互联网 发布:黑客帝国台词 知乎 编辑:程序博客网 时间:2024/06/05 18:15
一、查找
1、grep的使用
特殊字符在搜索一组指定的文件时非常有用。例如,如果想搜索所有的C程序源文件中特定的模式,您可以用“*.c”来指定文件名列表。假设用户的 C程序中包含一些不必要的转向语句(goto语句),想要找到这些语句,可以用如下的命令来搜索并显示所有包含goto语句的代码行
grep goto *.c
2、cat
3、find
4、locate
参考:http://www.baike.com/wiki/Linux%E6%96%87%E4%BB%B6%E5%86%85%E5%AE%B9%E6%9F%A5%E8%AF%A2%E5%91%BD%E4%BB%A4
http://blog.csdn.net/tangpengtao/article/details/6839579
二、vi
vi打开一个文件之后使用: /pattern 然后enter 就可以找到pattern在文中的位置
参考:http://www.ibm.com/developerworks/cn/aix/library/au-vitips.html
自己总结复习
未完待续........................
0 0
- linux常用 字符 查找命令 grep find cat locate 文本编辑命令vi
- linux下常用查找命令locate find
- linux常用find,grep查找命令搜集
- linux命令之diff,whereis,locate,pwd,cat,grep,touch,find
- Linux find grep cat xargs命令学习
- linux查找命令、find、grep
- linuxs 常用查找命令 locate find whereis
- Linux 常用基本命令 cat grep
- 五个查找命令:grep、find、locate、whereis、which
- linux文件查找命令locate和find
- linux查找命令which、whereis、locate、find
- Linux下的五个查找命令:grep、find、locate、whereis、which
- Linux内、外部命令的使用、文件权限、文件查找(find、locate、grep)
- Linux内、外部命令的使用、文件权限、文件查找(find、locate、grep)
- linux 查找命令(find which whereis grep locate type)
- Linux下的五个查找命令:grep、find、locate、whereis、which
- Linux下的五个查找命令:grep、find、locate、whereis、which
- Linux下的五个查找命令:grep、find、locate、whereis、which
- HDU2176:取(m堆)石子游戏(Nim)
- 老罗的androdi视频分享
- 3DESjava加解密
- Jsp遍历后台传过来的List
- C++派生类对象访问基类的protected成员
- linux常用 字符 查找命令 grep find cat locate 文本编辑命令vi
- MD5加解密
- 黑马程序员_学习笔记第15天——TreeSet、泛型
- 读《程序员应该知道的97件事》笔记
- Android 发送http请求实例
- 设计一个日期类Date,,要求: (1)包含年(year)、月(month)和日(day)私有数据成员。 (2)包含构造函数,重载关于一日期加上天数的加法运算符+、重载关于一日期减去天数的减加运算符-
- 操作系统实现----多进程(无特权级转移)
- SAE搭建Discuz教程、新浪SAE免费建站
- java加解密