sed命令反向引用抓取/etc/hosts中的权限
2017-11-07 15:02:45 0 举报
反向引用抓取ip
作者其他创作
大纲/内容
^
$
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
[root@oldboyedu42 ~]# stat /etc/hosts |sed -nr '4s#^.*\\(([0-9]+)/.*$#\\1#gp'0644
[root@oldboyedu42 ~]# stat /etc/hosts | sed -n '4p'
sed命令反向引用取出/etc/hosts中的权限详解
0 条评论
下一页