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
  • 29,401
  • 18
  • 105
  • 117
user1574598
  • 3,771
  • 7
  • 44
  • 67
  • 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
  • 175,061
  • 34
  • 275
  • 318