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:
parent
4cbaaf9b71
commit
0d3fb22f07
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user