Storing a directory as a variable in KSH

I know this is sort of trivial, but basically I want to store a directory as a variable in KSH so I can later call it.

I am not sure if the syntax is right:

DIRECTORY={/abc/domain/${DIV}/}

where DIV is another variable.

Thanks!

DIV="something"
DIRECTORY="/abc/domain/${DIV}/"

Use quotes if there are spaces in file or directory names

1 Like