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:
Devin Teske
2016-12-12 19:12:31 +00:00
parent e3d4c4dcde
commit 0e638f57e6
+2 -2
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"