Linux鸟哥视频学习笔记21

正则表达式1 grep 实操 cd /tmp cat -n test grep '^[a-z]' test 显示出以字母为开头的所有行内容 grep '^[tg]' test 显示出以字母t或g为开头的所有行内容 grep '!$' test 显示出所有以感叹号为结尾的行内容 grep '\.$' test 显示所有以句号结尾的,这里用到了转义  实操 grep 'h...o' test 显示以h
相关文章
相关标签/搜索