2 questions from the last 30 days
Advice
0
votes
9
replies
89
views
Shell substitute/show variables from one variable
The task is to show line with variables from one variable (substitute like echo "${!VAR_NAME}" but for multible variables at once)
i e g
l=$(head -1 "$table") #this header can vary
...
0
votes
1
answer
30
views
One line cmd nested FOR loop within FOR loop with delayed variable expansion (not in a batch file!)
I can't recall (and can't work out) if there is a way to have a cmd FOR loop nested within another FOR loop where for each outer FOR loop iteration, the inner FOR loop is iterated.
For example:
FOR /F ...