How to convert the ..
in the path names to absolute path names in a bash script. That is, if I have a path /home/nohsib/dvc/../bop
, I want this to be changed to the path without dots in it, in this case /home/nohsib/bop
How can I do that?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…