Using awk, I want to print all lines that have a string in the first column that starts with /dev/vda
I tried the following, but obviously * does not work as a wildcard in awk:
awk '$1=="/dev/vda/*" {print $3}' Is this possible in awk?
https://stackoverflow.com/questions/67051080/using-a-wildcard-in-awk-with-references-to-file April 12, 2021 at 07:30AM
没有评论:
发表评论