use string concatenation

so there's no need to escape double quotes
This commit is contained in:
NRK
2021-08-11 00:06:49 +06:00
parent 967970df78
commit ec1443e752

6
sxbm
View File

@ -128,9 +128,9 @@ bm_list() {
__tag_search() {
awk -v COL_LINE_NUM="$COL_LINE_NUM" \
-v COL_LINK="$COL_LINK" -v COL_TITLE="$COL_TITLE" \
"$QUERY_TAG { LINK=\$1; \$1=\"\";
gsub(/[[:space:]]\+[^[:space:]]+/,\"\");
print COL_LINE_NUM NR \") \" COL_LINK LINK \" \" COL_TITLE \$0 }" \
"$QUERY_TAG"'{ LINK=$1; $1="";
gsub(/[[:space:]]\+[^[:space:]]+/,"");
print COL_LINE_NUM NR ") " COL_LINK LINK " " COL_TITLE $0 }' \
"$DATA_FILE"
}