Closed cyayon closed 9 months ago
Hi,
thanks for the 2.1.1 and fixed issue #36.
On archlinux, with GNU awk 5.3.0, there is a warning message repeated multiple times :
awk: warning: escape sequence `\[' treated as plain `[
Is it possible to replace :
field_name=$(printf "%s" "$i" | awk -F '": ?["\[]?' '{print $1}' | tr -d '"' | tr -d '[]') field_value=$(printf "%s" "$i" | awk -F '": ?["\[]?' '{print $2}' | tr -d '"' | tr -d '[]')
with
field_name=$(printf "%s" "$i" | awk -F '": ?["[]?' '{print $1}' | tr -d '"' | tr -d '[]') field_value=$(printf "%s" "$i" | awk -F '": ?["[]?' '{print $2}' | tr -d '"' | tr -d '[]')
thanks.
I like your original suggestion to use cut so I went ahead and implemented that in v2.1.2.
cut
Good ! I think it also consumes less resources.
Hi,
thanks for the 2.1.1 and fixed issue #36.
On archlinux, with GNU awk 5.3.0, there is a warning message repeated multiple times :
Is it possible to replace :
with
thanks.