# Convert shell environment variables to Postman format when importing cURL

**URL:** <https://community.postman.com/t/convert-shell-environment-variables-to-postman-format-when-importing-curl/42013>\
**Category:** Help Hub\
**Tags:** variables, environments, curl, import\
**Created:** [December 13, 2022, 12:24pm UTC](https://community.postman.com/t/convert-shell-environment-variables-to-postman-format-when-importing-curl/42013 "2022-12-13T12:24:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaeuge](https://avatars.discourse-cdn.com/v4/letter/y/958977/32.png) [@yaeuge](https://community.postman.com/u/yaeuge)\
**Post date:** [December 13, 2022, 12:24pm UTC](https://community.postman.com/t/convert-shell-environment-variables-to-postman-format-when-importing-curl/42013/1 "2022-12-13T12:24:20Z")

</div>

Let’s say I have some curl command. Depending on the environment it should use different set of values defined in the shell (bash) variables, e.g.:

`curl --location --request GET "https://${TEST_STAND_HOST}/test" --header "Authorization: Bearer $AUTH_TOKEN"`

This command works fine in the terminal, but Postman uses a different syntax for variables, so I have to manually replace ${foo} and $bar with {{foo}} and {{bar}} when importing it to Postman. Is there any convenient way to automatically replace the format?
