Is there a way of outputting the directory of a file? Therefore, if I wanted to find out the directory of ../../test.sh, how could I get its directory without actually cd'ing to that directory and typing pwd?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.