Finalizat

Fix an bin bash script part

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.

Aptitudini: Bash Scripting

Vezi mai multe: script checks changed values csv, best bash script, unix ftp bash script, mutt bash script, common bash script admin task, bash script set proxy, sendmail bash script, unit testing bash script, bash script website clicks, bash script query mysql database, bash script login webiste, file parsing bash script, parse using bash script find average, bash script check web page, bash script find ftp folder existing, steps writing bash script, bash script send email attachment, bin bash script, bin/bash script

Despre angajator:
( 17 recenzii ) Schaanwald, Liechtenstein

ID Proiect: #28710878

Acordat lui:

AnilMaram22

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

%selectedBids___i_sum_sub_7%%project_currencyDetails_sign_sub_8% USD în 7 zile
(1 părere)
0.4

3 freelanceri licitează în medie 22$ pentru acest proiect

goodwork20k

Hello, I am a bash script expert, i can help you to fix your issue Please ping me for further discussion Thanks

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(45 recenzii)
5.5
(1 părere)
0.8