linux正则表达式企业级深度实践案例2

[root@redhat~]#  sed  -nr  ' s#([ ^ : ]+)  (: .* :)  (/.*$)#321#gp '  /etc/passwd

原文地址:https://www.cnblogs.com/axzq/p/9579386.html