awk -F, '{ if($NF == "dmz"){ if($7~/^[a-z][A-Z][^@]+$/){ print $7,$NF }else if($7~/[@]/){ print $7,$NF }else if($7~/^[0-9]+$/){print $7,$NF} } }' file
Powered by: 博客园 Copyright © 2024 语行 Powered by .NET 9.0 on Kubernetes