Bash: variable substitution

What does this bash script line mean?

cd @SOMEDIR@
renisenbbAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
Change the current directory to '@SOMEDIR@'
renisenbbAuthor Commented:
I meant to ask how is SOMEDIR specified? Is it an env variable?
ozoCommented:
@SOMEDIR@ is the name of the directory which is being set to be the current directory.
That the name is somewhat unusual could suggests the possibility that another program may be intended to take the text of the bash script and modify it.
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

renisenbbAuthor Commented:
My question really is :   There are 2 @ signs surrounding some text (in this case, i just used an example of SOMEDIR). What are the 2 @ signs for?

For eg, if i specify a variable like this:
HELLO=Hello
I can then use $ to refer to it like this:
echo $HELLO

So in this case, why is the code not like this ?   :
cd $SOMEDIR
Instead, it is :
cd @SOMEDIR@

What are the 2 @ signs for?
ozoCommented:
The 2 @ signs are part of the name of the directory, just like the S and the O and the M and the E and the D and the I and the R are parts of the name of the directory.
(unless some thing else comes around and changes the name in the text of the script)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ozoCommented:
If @SOMEDIR@ is not the name of the directory you want to cd to, then it may be that the 2 @ signs are for drawing your attention to the part of the script where you can fill in the name of the directory you do want to cd to.
renisenbbAuthor Commented:
Ok, thanks, i thought it was special bash syntax.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.