1
AWK
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.
列出第一列
docker ps | grep hello | awk '{print $1}'
有些情况下,我们要打印出一些特殊字符,下面给出一些示例来。
docker images | grep jenkins | awk '{print $1":"$2}'
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK