Skip to content
linux211 edited this page May 16, 2017 · 1 revision

awk 根据外部变量匹配某一域值

shell>> i='a'

awk '1 /′1 /′i'/ {print $0}' test.txt
Clone this wiki locally