1

I want to add a few temp variables within terminal. I have tried this after searching the problem:

export value=10
export path=/Users/..../..../....., etc.

The problem is that I can't read the values back in order to confirm if they have stored correctly?

ocodo
  • 28,528
  • 17
  • 100
  • 115
user1574598
  • 3,488
  • 6
  • 32
  • 57
  • Possible duplicate of [Setting environment variables in OS X?](http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x) – jww Aug 16 '14 at 20:25
  • Not really a duplicate -- the other question asks about how to set variables permanently, system-wide, and doesn't touch upon how to access their values. – tripleee Aug 17 '14 at 07:23

1 Answers1

3

You can access your variables with $variablename.

Try e.g.

echo "$path"
tripleee
  • 158,107
  • 27
  • 234
  • 292