I am running a script through a link (ln -s) and I want to find the directory of the actual file and not the link. In the script I want to cd into its directory. Using cd $(dirname $0) changes dir into the link's directory instead of the actual scripts directory. Is there a simple way to do this?
-- Micha Feigin [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]