linux系统中grep同时提取以特定字符开头的行、以特定字符结尾的行_qidanei_ysu的博客-CSDN博客_grep 以某字符结尾
[root@centos79 test]# cat a.txta g r eu c j alikei x k likea f g likera f h g likers g e g[root@centos79 test]# grep "^a" a.txt ## 查找以a开头的行a g r ea f g likera f h g liker[root@centos79 test]# grep "^a.*r$" a.txt ## 同时查找以a开头同时以r结