Let's say I have a variable like this:
directory="/home/lrh/package1/util/../.."
How could I convert it to the following?:
"/home/lrh"
In other words, how could I have Bash "evaluate" the directory
variable and get the full path?
Let's say I have a variable like this:
directory="/home/lrh/package1/util/../.."
How could I convert it to the following?:
"/home/lrh"
In other words, how could I have Bash "evaluate" the directory
variable and get the full path?