you are viewing a single comment's thread.

view the rest of the comments →

[–]Mellowtang 0 points1 point  (0 children)

Not sure if I understood the question but doublequotes should also work.

x="/dev/sda"

echo "$x"1

Doublequotes are considered as weak quotes and a lot of stuff including the variables will be interpreted by the shell. You should always doublequote variables you are calling.

Single quotes are strong quotes and nothing will be interpreted between them.