1.显示/etc/passwd文件中以bash结尾的行 [root@localhost ~]# grep "bash$" /etc/passwd 2.显示/etc/passwd文件中的两位数或三位数 [root@localhost ~]# grep -o "\<[[:digit:]]\{2,3\}\>"
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号