I would like to extract the current path in a variable and use it later on in the script
Something like:
myvar = pwd
Later on:
cd myvar
But my bash skills have rusted over the years.
How would i go on about doing that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…