标签:int cal 字符 sed -n password nbsp awk host root
三种方法都可以
[root@localhost ~]# sed -n "1,5 s#.*\(.\)#\1#p" /etc/passwd
[root@localhost ~]# sed -nr ‘1,5 s#(.)#\1 #gp‘ /etc/passwd |awk ‘{print $NF}‘
[root@localhost ~]# head -5 /etc/passwd | awk -F ‘ ‘ ‘ {print $NF}‘
标签:int cal 字符 sed -n password nbsp awk host root
原文地址:https://www.cnblogs.com/zc1741845455/p/10888785.html