摘要:
1、使用sed命令打印出/etc/passwd文件中的奇数行内容 [root@centos8 ~]# sed -n '1~2p' /etc/passwd 2、使用sed命令将/etc/passwd文件从2到10行中的bin替换成linux [root@centos8 ~]# sed -ri.bak 阅读全文
摘要:
1、使用sed命令打印出/etc/passwd文件中的奇数行内容 [root@centos8 ~]# sed -n '1~2p' /etc/passwd 2、使用sed命令将/etc/passwd文件从2到10行中的bin替换成linux [root@centos8 ~]# sed -ri.bak 阅读全文
|