echo "aaa" | awk '{
test=####;
patten="\\<"test"\\>";
if ($0 ~ patten) {
do something;
}
else {
do something else;
}'
echo "aaa" | awk '{
test=####;
patten="\\<"test"\\>";
if ($0 ~ patten) {
do something;
}
else {
do something else;
}'
本文标题:awk模式匹配中使用自定义变量
本文链接:https://www.haomeiwen.com/subject/fgpnyxtx.html
网友评论