If I have a shell script where I get the parent folder using "../" can I expand that out somehow into it's absolute path?
You want readlink -f
.
$ cd /tmp
$ readlink -f ..
/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With