Monday, March 16, 2020

curl multiple line request to remote host using HEREDOC and SED

$ curl -d @<(sed 's/##NOME##/'"${1}"'/' << SED_FILE
{
"nome": ##NOME##,
}
SED_FILE
) http://anywebservice.com/name/${1}

No comments:

Blog Archive