It must be an easier way to replace an raw of an json data with sed...
My way dont work wright:
varcfg_b='"'
varcfg_b1=" "
date_1=$(eval date +%d.%m.%y)
next_full_wipe=$(date +"%d.%m.%y" --date='next Thursday')
sed -i -e 13c"$varcfg_b1$varcfg_bLast Wipe: $date_1 (Map-Wipe) | Next Wipe: $next_full_wipe (Full-WIPE)$v$
echo "${tput_green}Ingame Wipe Information was changed ${tput_reset}"
output:
"Response": [
"Last Wipe: 26.12.20 (Map-Wipe) | Next Wipe: 31.12.20 (Full-WIPE)"
Wipe: 26.12.20 (Map-Wipe) | Next Wipe: 31.12.20 (Full-WIPE)"
{
if i use the script twice, the same sentence will be build in in the json data. but only:
"Last Wipe: 26.12.20 (Map-Wipe) | Next Wipe: 31.12.20 (Full-WIPE)" is needed on an special part of the json data.
Linux shell expert
I am senior engineer and expert in shell scripting and deployed many scripts in crontab. I would like to work on your project for correct output with json data