how to ignore blank lines and comment lines using awk

后端 未结 3 1086
清酒与你
清酒与你 2021-01-01 03:59

i am writing this code:

awk -F\'=\' \'!/^$/{arr[$1]=$2}END{for (x in arr) {print x\"=\"arr[x]}}\' 1.txt 2.txt

this code ignore blank lines,

3条回答
提交回复
热议问题