sed匹配第N個進行替換

sed -s '/^c/{:a;n;[email protected]/bin/[email protected]/sbin/[email protected];/^m/!ba}' passwd [[email protected] 13_bash]# cat passwd a:x:1002:1002::/home/a:/bin/bash b:x:1003:1003::/home/b:/bin/b
相關文章
相關標籤/搜索