1 / 13
文档名称:

Regular Expressionas With Awk.pdf

格式:pdf   页数:13
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

Regular Expressionas With Awk.pdf

上传人:bolee65 2013/12/12 文件大小:0 KB

下载得到文件列表

Regular Expressionas With Awk.pdf

文档介绍

文档介绍:Regular expressions and sed & awk
Regular expressions
• Key to powerful, efficient, and flexible text processing by allowing for variable information in the search patterns
• Defined as a posed of letters, numbers, and special symbols, that defines one or more strings
• You have already used them in selecting files when you used asterisk (*) and question mark characters to select
filenames
• Used by several Unix utilities such as ed, vi, emacs, grep, sed, and awk to search for and replace strings
– Checking the author, subject, and date of each message in a given mail folder
egrep "^(From|Subject|Date): " <folder>
– The quotes above are not a part of the regular expression but are needed by mand shell
– The metacharacter | (or) is a convenient one bine multiple expressions into a single expression to match
any of the individual expressions contained therein
∗ The subexpressions are known as alternatives
• A regular expression posed of characters, delimiters, simple strings, special characters, and other metacharacters
defined below
• Characters
– A character is any character on the keyboard except the newline character ’\n’
– Most characters represent themselves within a regular expression
– All the characters that represent themselves are called literals
– A special character is one that does not represent itself (such as a metacharacter) and needs to be quoted
∗ The metacharacters in the example above (with egrep) are ", ^, (, |, and )
– We can treat the regular expressions as a language in which the literal characters are the words and the
metacharacters are the grammar
• Delimiters
– A delimiter is a character to mark the beginning and end of a regular expression
– Delimiter is always a special character for the regular expression being delimited
– The delimiter does not represent itself but marks the beginning and end of the regular expression
– Any character can be used as a delimiter as long as it (the same charact

最近更新

2025上海中医药大学附属岳阳中西医结合医院病.. 34页

2025中国中煤能源集团有限公司南方分公司电力.. 33页

2026年刑事诉讼原理与实务模拟题100道及参考答.. 48页

2026年刑事诉讼原理与实务模拟题100道(夺冠系.. 47页

2025内蒙古自治区公务员考试常识判断专项练习.. 26页

2025南昌县向塘实验学校招聘中学教师3人考试题.. 43页

2026年南京特殊教育师范学院单招职业倾向性测.. 44页

2026年南昌应用技术师范学院单招职业适应性考.. 44页

2025山西运城新绛县司法协理员招聘12人历年题.. 35页

2025年企业人力资源管理师考试题库500道含答案.. 183页

2026年各工种岗位作业安全考核试题含答案(a卷.. 40页

2025年吉林科技职业技术学院单招职业适应性测.. 44页

2025年大连市公开招募高校毕业生基层服务岗位.. 36页

2025年平顶山工业职业技术学院单招职业倾向性.. 45页

2026年四川汽车职业技术学院单招职业适应性考.. 45页

2026年国开法律专题形考作业4考试题库及完整答.. 45页

2025年河南经贸职业学院单招职业适应性测试题.. 44页

2025年清水县幼儿园教师招教考试备考题库含答.. 30页

2026年国税廉政知识测试题(全国通用) 14页

2026年地方病控制题库及完整答案1套 40页

2026年大学c语言考试题库(夺分金卷) 13页

2025年陕西邮电职业技术学院马克思主义基本原.. 13页

2026年天津城市职业学院单招职业适应性测试模.. 42页

2025广东广州银行人才招聘备考题库必考题 52页

2025广东清远市公安局招聘警务辅助人员200人(.. 46页

2026年宁波财经学院单招职业倾向性考试模拟测.. 45页

2026年安徽广播影视职业技术学院单招职业技能.. 44页

2025新疆投资发展(集团)有限责任公司第三批.. 37页

2026年安徽财贸职业学院单招职业技能测试模拟.. 44页

2025江西省建工集团有限责任公司所属企业招聘.. 48页