_____________________________________________________________________________________________
RE 字符 意义与范例
_____________________________________________________________________________________________
^word 待搜寻的字符串(word)在行首!
范例:grep -n '^#' regular_express.txt 搜寻行首为 # 开始的那一行!
_____________________________________________________________________________________________
word$ 待搜寻的字符串(word)在行尾!
范例:grep -n '!$' regular_express.txt 将行尾为 ! 的那一行打印出来!
阅读(854) | 评论(0) | 转发(0) |