码迷,mamicode.com
首页 > 系统相关 > 详细

linux--grep

时间:2017-02-19 10:17:43      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:意思   str   comm   class   正则   lob   sea   --   搜索   

grep--Global search Regular Expression and Print out the line的简称,即汉语的意思是 全面搜索正则表达式并且打印出来。

grep的一般格式是

               grep      选项                   模式         文件

[meng@localhost shellCommand]$ grep          -n         "boy"     grepTest1.txt   grepTest2.txt 
结果:                                    grepTest1.txt:1:i am a boy

 

linux--grep

标签:意思   str   comm   class   正则   lob   sea   --   搜索   

原文地址:http://www.cnblogs.com/sirwang/p/6414591.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!