Answer the question
In order to leave comments, you need to log in
How to list the environment variables set for the current session (without including variable values in this list)?
As I understand it, the list itself is issued by the env command, but it produces the form name = value, but how to display it without value, only name?
Answer the question
In order to leave comments, you need to log in
env|cut -d'=' -f1
Read more:
| - pipeline transfer
cut - output fields
-d'=' - set field separator
-f1 - output the first field (i.e. the one before the = sign)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question