How to realize Field extraction by Docker Image in Linux
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!