linux 操作系统下 写出一条grep命令,作用是在文件中查找满足下列条件的行:以大写字母开头,以小写字母结

2024-12-13 16:23:42
推荐回答(1个)
回答1:

[lotto@ftptest2 ~]$ cat text
Asdfsdf
sdfsdf
sdfsdfB
sdfsdf
BsdfsdfA
sdfsdf
[lotto@ftptest2 ~]$ grep ^[A-Z].*.[a-z]$ text
Asdfsdf