awk(1) match() takes a regex, use /.../ to remind ourselves of this
NB: The difference between "..." and /.../ for a regex in awk is that quoted strings go through escape expansion first (e.g., \\ becomes \)
This commit is contained in:
parent
4fa8c81cc3
commit
3204364296
@ -93,8 +93,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 (match($i, /[[:lower:]]/))
|
||||
if (match($(i+1), /[[:lower:]]/))
|
||||
printf "\\\\\\ "
|
||||
else
|
||||
printf "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user