I have a script which greps itself. This work great when the user is in the same directory, but falls down when run from a different folder. How can I get the script to find where it actually is (not where the user is)?
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.