If you're not going to make use of the products of a match() in awk

(e.g., RSTART and RLENGTH variables) then use ~ instead of match()
This commit is contained in:
dteske 2016-12-12 19:12:31 +00:00
parent 4cbaaf9b71
commit 0d3fb22f07

View File

@ -95,8 +95,8 @@ dialog_country_select()
sub(/Regulatory.*/, "")
for (i = 1; i <= NF; i++) {
printf "%s", $i
if (match($i, /[[:lower:]]/))
if (match($(i+1), /[[:lower:]]/))
if ($i ~ /[[:lower:]]/)
if ($(i+1) ~ /[[:lower:]]/)
printf "\\\\\\ "
else
printf "\n"