1

AWK

 2 years ago
source link: https://linuxsuren.github.io/blog/os/linux/common/awk/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

列出第一列

docker ps | grep hello | awk '{print $1}'

有些情况下,我们要打印出一些特殊字符,下面给出一些示例来。

docker images | grep jenkins | awk '{print $1":"$2}'


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK