Linux工具:grep精确匹配

grep -w ‘hello’

案例演示:

[root@docker01 practice_if]# grep system /etc/passwd
systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin
[root@docker01 practice_if]# grep -w system /etc/passwd
[root@docker01 practice_if]#

你可能感兴趣的:(Linux,linux,服务器,运维)