Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize Field extraction by Docker Image in Linux

Shulou Source: shulou.com Published: 2022-06-01 05:35:31 10月02日 Update

This article mainly introduces the Linux Docker image how to achieve field extraction, the article is very detailed, has a certain reference value, interested friends must read it!

Field extraction

Next, extract the container ID column, which is pediatric for awk:

$docker images | grep none | awk'{print $3}'

Of course, you can get the same result by segmenting fields with the cut command. Because cut can only be segmented by a single character, and there are multiple spaces in the original text, text replacement is required first.

These are all the contents of the article "how to extract fields from Docker images in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Fields mirrors content articles same value interest single original text commands multiple characters containers guys buddies Children Pediatrics text more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft vpn NVidia Linux macOS