I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
Hey, yes actually you can grep the output of the env and get the values or echo works as well. Most the people use what you have mentioned above and very few people are aware about printenv and how easy it is to use. That's the only reason wrote about it. Thanks for the feedback on the env blog, I will surely consinder adding more about reading a varibale.
I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
I haven't seen this before. I use
envwhich is similar toprintenvunix.stackexchange.com/questions/1...
View variables.
And to search:
Or just
I see you cover
envin the next post for modifying environment but not for reading itHey, yes actually you can grep the output of the env and get the values or echo works as well. Most the people use what you have mentioned above and very few people are aware about printenv and how easy it is to use. That's the only reason wrote about it. Thanks for the feedback on the
envblog, I will surely consinder adding more about reading a varibale.printenv FOOis longer to type thanecho $FOOand also it is less flexible. You can't do something likeecho "$FOO $BAR"Maybe you can make an alias:
So you can run