Hi.
I need help with loop for sed.
I have the script:
cat test1.txt | sed -n 1,3p | jq -Rn \
--arg v1 / \
--arg v3 server1 \
'[inputs] | map({"{#NAME}" : $v1, "{#LIST}": ., "{#MARK}": $v3}) | { "data": . }'
cat test1.txt | sed -n 4,6p | jq -Rn \
--arg v1 / \
--arg...