I'm writing a small script for which I would appreciate any help from you learned and generous fellows.
I need to echo a long
list of variables like this:
These variables are not fixed like above but are the result of the output of several commands.
My first (naive) thought was to do:
VARGROUP=(filename filetype filepath)
for i in vargroup ; do
I obviously get
since the echo expression expands both instances.
Is there a way to echo the unexpanded variable (the name of the variable) inside the for loop?
Thanks in advance and sorry for my lack of (or misuse of) technical vocabulary.