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
相关文章
相关标签/搜索