64

Linuxgrep和正则表达-Linux初学者-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13438667/2067600
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、什么是正则表达式正则表达式就是为了处理大量的文本|字符串而定义的一套规则和方法它主要用于字符串的模式分割、匹配、查找及替换操作,其中最为重要作用是匹配。在Linux系统中最常用正则表达式的命令是grep(egrep),sed,awk二、正则表达式与通配符正则表达式分为两类:基本正则表达式:BRE扩展正则表达式:EREgrep工具支持基本正则表达式,egrep支持扩展正则表达式,并且grep的-

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK