# How to make a command with brackets in it

**URL:** <https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268>\
**Category:** General Usage\
**Created:** [November 17, 2020, 12:49am UTC](https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268 "2020-11-17T00:49:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scone](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@scone](https://discourse.julialang.org/u/scone)\
**Post date:** [November 17, 2020, 12:49am UTC](https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268/1 "2020-11-17T00:49:36Z")

</div>

Hi everyone,

this is very simple and frutrating. I just want to make this into a command that I can run:

```julia
for x = 4:2:10
    y = [4 5.5 7]
run( `surfaceTransformPoints -translate '( $x $y 0 )' file.stl file_temp.stl`)
end
end

```

It complains about the special charaters ( and '. When I use single quotes on each, the single tick ’ comes out properly in the command, but the brackets produce extra ', which cause the external program to crash.

Any ideas? thanks

---

<div class="post-metadata">

**Author:** ![tomerarnon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomerarnon/32/3170_2.png) [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)\
**Post date:** [November 17, 2020, 1:22am UTC](https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268/2 "2020-11-17T01:22:45Z")

</div>

Did you try quoting with double quotes `""`? In any case single quotes seem to prevent variable interpolation in Cmds:

```julia
julia> `echo "$x"`
`echo 1`

julia> `echo '$x'`
`echo '$x'`

```

---

<div class="post-metadata">

**Author:** ![scone](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@scone](https://discourse.julialang.org/u/scone)\
**Post date:** [November 17, 2020, 1:38am UTC](https://discourse.julialang.org/t/how-to-make-a-command-with-brackets-in-it/50268/3 "2020-11-17T01:38:42Z")

</div>

Yep, I discovered that shortly after posting this… Thanks!
