使用awk以冒号分隔获取/etc/passwd文件第一列

cat /etc/passwd | awk -F: '{print $1}'
posted @ 2022-04-24 14:58  海月如希  阅读(49)  评论(0编辑  收藏  举报