How to do bash variable replacement with curl artifactory AQL query [duplicate]
问题 This question already has answers here : How do I use variables in single quoted strings? (7 answers) Closed last year . I would like to be able to use bash variable replacement in the following query to Artifactory Query Language api (AQL) In the shell, the command works like this: $ curl -H 'content-type: text/plain' -H 'X-Api-Key: APIKEYGOESHERE' -X POST https://foo.jfrog.io/foo/api/search/aql -d ' > items.find({ > "repo":{"$eq":"foo-docker"}, > "path":{"$match":"REPONAME/*"} > }) > .sort(