Below is the file content in Json
{
"FD_sfdsdf:ClientMasterBaseUrl": "http://example.com",
"FD_fsdfs:CommonAPIBaseUrl": "http://example.com",
"FD_sdfsadfsdf:Secret": "sdfsdf"
}
Command:
cat fd.json| jq -r 'to_entries[] | "setx \(.key) \"\(.value)\""'
which I run in windows CMD.
Output:
setx FD_sfdsdf:ClientMasterBaseUrl "http://example.com"
Above is the output desired which I am getting in MAC and Linux but the same command doesn't work in windows.
Error:
'"setx \(.key) \"\' is not recognized as an internal or external command, operable program or batch file.
