摘要:
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 阅读全文
posted @ 2020-06-14 16:02
葛海豹
阅读(144)
评论(0)
推荐(0)
|
摘要:
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 阅读全文
posted @ 2020-06-14 16:02
葛海豹
阅读(144)
评论(0)
推荐(0)
|